I have a string which I read in from :
TextReader tr = new StreamReader(this.dataPath ); string contents = tr.ReadToEnd();
The value of co
System.String is immutable. Operations such as Replace return a new string rather than modifying this string. Use System.Text.StringBuilder if you truly need a mutable string or just assign the result of the Replace call to a variable.
System.String
Replace
this
System.Text.StringBuilder