Added case folding for tokenization
Improved memory usage