Case insensitive tokenization fixed

Fixes #1