In case the user type "Yes" instead of "yes" you can get away by adding the downcase method for example:

var = gets.chomp.downcase