Error: undefined method `collect' for #<String:0x007ff92c24c2c8> (NoMethodError) in Ruby 1.9.3

Hopefully fixing: undefined method `collect' for #<String:0x007ff92c24c2c8> (NoMethodError) in Ruby 1.9.3