In C# you can do this:
foo = string.Format(\"{0} {1} {2} {3} ...\", \"aa\", \"bb\", \"cc\" ...);
This method Format() accepts in
Format()
function void MyFunction(string format, params object[] parameters) { }
Instad of object[] you can use any type your like. The params argument always has to be the last in the line.