public MyString MyInsert(int startIndex, MyString newStr) { char[] str = new char[this.Value.Length + newStr.Length()]; int i1; for (i1 = 0; i1 < startIndex; i1++) { str[i1] = this.Value[i1]; } int j = 0; int i2; for (i2 = startIndex; i2 < newStr.Length() + startIndex; i2++) { str[i2] = newStr.Value[j]; j++; } for (int i = i2++; i < this.Value.Length + newStr.Length(); i++) { ++i1; str[i] = this.Value[i1]; } this.Value = str; return(this); }