You're slightly off the mark here. << is a way to delimit a string, and upcase is the name of the method to capitalize. 

chomp! - removes newline characters, or the specified characters, from the end of a string
strip! - removes leading or trailing whitespace from a string
split  - returns an array of strings made up of the original string separated on whitespace or the specified characters or regexp