using const TString for prefix to avoid overwrite