replace newline characters before running lexer tests