How about using `const std::string&` for `text` argument?