Fix slowdown when lexing long strings