(maint) Use `lines.map` on strings for Ruby 1.9 compatibility