def generateHashtag(str) str = str.gsub(/\\s+/, " ") if str.empty? return false else if str.length >= 140 || str == " " a