removed unnec str conversion in tokenizer