string analyze and tokenize