string = "Take this out"; s.Replace("this", "that"); //wrong s = s.Replace("this", "that"); //correct