fix string comparisons