Use safe string comparisons in SMOF