Use a more robust string check.