Be sure to get rid of the newline with something like `strip`.

That being said, I'd always favor `gets.strip` over `gets.chomp`. If a user ever fat fingered their entry from the command line and added an extra space at the end, `strip` will also get rid of that space and the newline, rather than `chomp` which will just get rid of the newline.