Parse lines with trailing \r\n or \n