Optimize rules by making case sensitive