Use MCStringCompareToCString() (with caseless compare option) rather than strcasecmp().