Implement tokenization