How to trim a rendered item before and after specific symbols
A tip from a friend got it working. Here the solution.

&lt;?php foreach ($items as $delta =&gt; $item) : ?&gt;
    &lt;?php 
     $file_extension = substr(render($item) , strrpos(render($item) , '.') +1);
     print basename(render($item), '.'.$file_extension);
    ?&gt;
     &lt;/p&gt;
&lt;?php endforeach; ?&gt;