I was unable to find this on php.net. Is the double equal sign (==) case sensitive when used to compare strings in PHP?
==
You could try comparing with a hash function instead
if( md5('string1') == md5('string2') ) { // strings are equal }else { // strings are not equal }