String s = new String('X', 5); s.Replace("X", "ha");