change std::string.compare() to ==