new modified working Tokenizer code