say 'const StringData& field' and then you can call this with either const char* or std::string. Probably doesn't matter here, but just get in the habit of using StringData for const string arguments.