Added functionality to enable/disable case sensitivity.