Managed to fix using "const std::string&" in funcs

... using a tiny hack but ah. It seems to work.