fix string comparison bug