Issue 1655

Changed "each_line" to "each" fix the problem.
Changed 'error msg' to array since string doesn't have each method.

Test:
bundle exec rake test, bundle rspec and manual test.

Line is too long. [85/80]