Fix an error in which string comparisons didn't work correctly.