replace gets.chomp with gets.strip