fix #1: crash while typing name

`?A` evaluates to number in Ruby 1.8, string in Ruby >= 1.9