Test for lex string