empty? fixes the ruby 1.9.2 error

  - The error related to calling the private method select
    on an empty String object