isCaseSensitive is only being used once. Just use the original variable.