#!/usr/bin/env ruby def hashtag(string) words = string.split(/\s+/) words.map do |word| "#" + word.downcase end end STDIN.each_line do |line| puts hashtag(line.chomp) * ' ' end