Updated method of lexer input to use str of the lexer lifetime and fixed associated problems that were caused.