corrected string comparisons