tokenize cleanup