NECROMAN:
string MyStrFunc(string template) {
return new StringBuilder(template,0,3).Append('*',template.Length-3);
}
Muzes vyzkouset, jestli to nebude rychlejsi nejprve s vytvorenim stringbuilderu s danou kapacitou teprve pak appendovat.
Ochranu proti null atd... si zaridis sam :).