title: Input string does not match a numerical range
body: <p>The below ruby code is not working as expected. It doesn't seem to recognise the <code>1..3</code> range and is only reading the <code>else</code> condition. If I gave a number instead of a range, it works though. Not sure where I'm going wrong.</p>
  
  <pre><code>print "Enter your cost: "
  cost = gets.chomp
  case cost
  when 1..3 
   puts "inexpensive"
  when 3..5 
   puts "affordable"
  else puts "no comments"
  end
  </code></pre>