Corrected string comparison