Fix a bug in raw input tokenizer