The problem is that the method doesn't change the string you call the method on, but returns another occurrence of the string, so you should assign it to another object in order for the changes to persist because a string is a non mutable object:
a=a.Replace("=", "r");
a=a.Replace("+", "t");