Changed hte gets to gets.chomp