Fix string comparison bug