Parses a string into an array of lines broken by \r\n or \n