title: how to remove carriage returns, newlines, spaces from a string
body: <p>How do I remove the spaces, carriage returns from in between <code>&lt;</code> and <code>&gt;</code> ?</p>
  <pre><code>**START BELOW THIS LINE***
  
  &lt;TestItem1Request&gt;
    &lt;Username&gt;admin&lt;/Username&gt;
    &lt;Password&gt;123abc..@!&lt;/Password&gt;
    &lt;Item1&gt;this is an item&lt;/Item1&gt;
  &lt;/TestItem1Request&gt;
  
  **END HERE **
  </code></pre>
  <p>I want the string result to end up as the following...</p>
  <pre><code>&lt;/TestItem1Request&gt;&lt;Username&gt;admin&lt;/Username&gt;&lt;Password&gt;123abc..@!&lt;/Password&gt;&lt;Item1&gt;this is an item&lt;/Item1&gt;&lt;/TestItem1Request&gt;
  </code></pre>
  <p>How do I do this?</p>