Ruby1.9 Support

String.each is deprecated in Ruby1.9.3. Should use each_line instead, so it works with both Ruby1.8 and Ruby1.9.3