added ability to enable/disable case sensitive comparisons