title: Django: check a last character in string
body: <p>I have this string <code>doc.specalization.name</code> from my views. If it does end with an <code>s</code>, I want to remove the <code>s</code>.</p>
  
  <p>I tried this code but i get <code>Could not parse the remainder: '('s')' from 'doc.specialization.name.endswith('s')'</code></p>
  
  <pre><code> {% if doc.specialization.name.endswith('s') %}
          &lt;h3&gt; {{doc.specialization.name|slice:":-1"}} &lt;/h3&gt;   
   {% endif %}
  </code></pre>