Splits the string into lines.