The MCString == operator (used when you do an <MCStringvar> == <something else>) is a caseless comparison - so this should be CompareCaseless here.