Corrected string compare