How to replace part of string by position?

string s = "ABCDEFGH";
s= s.Remove(3, 2).Insert(3, "ZX");

Leave a Comment