Using "chomp" to Fix Our Output

If we try to run the widget store program as it is now, the gets method returns the string the user types with a newline character on the end. This messes up the output when we try to print it. But when we looked at the documentation for the String class, we learned that strings have a method named chomp that can remove newline characters from the end of the string.