Good start. You could try method chaining next:

first_name = gets.chomp.capitalize

-- 
Posted via http://www.ruby-forum.com/.