title: Replacing Characters in String
body: <p>I am trying to replace all instances of a character in a string of text with another character but I'm not succeeding.</p>
  
  <p>Suppose the text is</p>
  
  <pre><code>cat rat mat fat
  </code></pre>
  
  <p>I want the script to replace all the <code>t's to p's</code></p>
  
  <pre><code>cap rap map fap
  </code></pre>
  
  <p>What I have is the following but it seems to do little for me.</p>
  
  <pre><code>SET /P MY_TEXT=ENTER TEXT:
  
  SET T2P=P
  
  SET NEW_TEXT=%TEXT=:T!T2P!%
  
  MSG * %NEW_TEXT%
  </code></pre>