resolved string compare issue