fixed string compare bug