Fix unnecessary change request due to lower case

MySQL returns lower case field parameters - so change the comparison to
be case independent - and use stripos because it is quicker than strstr.