how to insert to 1st and last position in a string in C# code example
Example: 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"