Simplified Tokenize logic.