title: How to remove all instances of a specific character from a string?
body: <p>I am trying to remove all of a specific character from a string. I have been using <code>String.Replace</code>, but it does nothing, and I don't know why. This is my current code:</p>
  
  <pre><code>        if (Gamertag2.Contains("^"))
          {
              Gamertag2.Replace("^" + 1, "");
          }
  </code></pre>
  
  <p>This just leaves the string as it was before. Can anyone please explain to me as to why?</p>