Add support for both new line delimiters(\r\n and \n).