Implement simple tokenizer.