Used string compare function