title: remove file extension from twig variable
body: <p>I am using Twig, in my template this works for .mp4 extension only</p>
  
  <pre><code>{{ video | trim('.mp4', 'right') }}
  </code></pre>
  
  <p>but some files have other extensions like .avi and .mkv
  how can I trim the last 4 characters from the {{ video }} variable?</p>