core: Pass string by reference in FetchFromPortName and DeleteService