implementing append text to lexer