trimming extension from filename - shorter