how to insert characters into a string in c# code example
Example 1: c# insert character into string at position
//Insert method returns a copy, it does not alter the string since strings are immutable
string str = "abc";
str = str.Insert(2, "XYZ"); //str == "abXYZc"
Example 2: string.insert c#
public string Insert(int Indexvalue, string value)