Change algo of string compare