added string compare function