Tokenizer almost works correctly