Refactoring
String
add support for handling line breaks in 'toLines' function