title: jstl Remove all whitespaces from a string
body: <p>I am trying to remove all whitespaces from a jstl variable.</p>
  
  <pre><code>&lt;c:set var="string1" value="This is first String         "/&gt;
  </code></pre>
  
  <p>Trim only removes the trailing spaces but I want the output like:</p>
  
  <blockquote>
    <p>"ThisisfirstString "</p>
  </blockquote>
  
  <p>with all spaces removed.Could anyone suggest?</p>