try this
public void stringFormat()
{
var str = "123332qw332w2";
var newStr = "";
var increment = 1;
for (int index = 3; index < 15; index += (3 + increment))
{
newStr = str.Insert(index, "-");
str = newStr;
}
newStr;
}
It will show your desired output
Happy coding :)