The value returned by `gets` includes a trailing newline. Use
`gets.chomp` or `gets.strip` to remove it.

-- Matma Rex