Replacing std::string::compare() with == where possible