Hi,
For replacing a substring in C Sharp/C#, use the following lines of code.
using System; class Class1 { static void Main(string[] args) { string newStr = "Heaven"; string finalStr = "CoderzWorld"; finalStr = finalStr.Replace( "World", newStr); Console.WriteLine( finalStr); } }