Fixed string comparison bug