Implement a tokenizer