title: trimming a string in a JSTL expression
body: <p>I have the following line in a JSP page:</p>
  
  <pre><code>&lt;c:if test="${postAuditBean.postAudit.authority == authority.value}"&gt;
  </code></pre>
  
  <p>I would like change this comparison to first trim leading and trailing spaces from both the left and right hand expressions prior to comparison... as in something like this:</p>
  
  <pre><code>&lt;c:if test="${trim(postAuditBean.postAudit.authority) == trim(authority.value)}"&gt;
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>&lt;c:if test="${fn:trim(postAuditBean.postAudit.authority) == fn:trim(authority.value)}"&gt;
  </code></pre>
  
  <p>which generated a parsing error in the JSP page.</p>
  
  <p>Can anyone tell me how to trim blanks from JSTL subexpressions?</p>