Mel lain new topic ids

Consider returning "const std::string*" or "const std::string&" to avoid constructing a copy of the string.