# Problem with Blank Spaces at End of Title and before .mp3

**URL:** https://community.mp3tag.de/t/problem-with-blank-spaces-at-end-of-title-and-before-mp3/7251
**Category:** Support
**Created:** [September 27, 2008, 2:53pm UTC](https://community.mp3tag.de/t/problem-with-blank-spaces-at-end-of-title-and-before-mp3/7251 "2008-09-27T14:53:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![fcastro](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/b3f665/32.png) [@fcastro](https://community.mp3tag.de/u/fcastro)
#### Post date: [September 27, 2008, 2:53pm UTC](https://community.mp3tag.de/t/problem-with-blank-spaces-at-end-of-title-and-before-mp3/7251/1 "2008-09-27T14:53:00Z")

</div>

Hi everyone,

I am having an odd problem. I have an mp3:

"John Silver - On The hill .mp3"

Notice that space after the word "hill". To get rid of that blank space I wrote this:  
Actions / Replace "\_FILENAME": " .mp3" -\> ".mp3"

When I run the action in Mp3tag v2.41 it changes on screen but if I then double click on the song it says "can't be accessed". Mp3tag then refreshes the directory and the mp3 has reverted back to "John Silver - On The hill .mp3"

Is this a bug or should I write a different formula?

---

<div class="post-metadata">

### Author: ![fcastro](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/b3f665/32.png) [@fcastro](https://community.mp3tag.de/u/fcastro)
#### Post date: [September 27, 2008, 3:31pm UTC](https://community.mp3tag.de/t/problem-with-blank-spaces-at-end-of-title-and-before-mp3/7251/2 "2008-09-27T15:31:58Z")

</div>

Hi all actually saw in the fact that this works:

Action type: Format value  
Field: \_FILENAME  
Formatstring: $trim(%\_filename%)

Now while this removes the blank space in the actual mp3 file it still does not remove the blank space within the actual title and artist field.

File:  
"John Silver - On The hill .mp3" \<-- correct

Title:  
"On The Hill " \<-- space still left after last word

I tried the next logical move from my perspective but it didn't work:  
Action type: Format value  
Field: \_Title  
Formatstring: $trim(%\_title%)

Any suggestions 😃

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [September 27, 2008, 4:54pm UTC](https://community.mp3tag.de/t/problem-with-blank-spaces-at-end-of-title-and-before-mp3/7251/3 "2008-09-27T16:54:08Z")

</div>

Use $trim(%title%) Only information fields are prefixed with an underscore.

Kind regards,  
Florian

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:21pm UTC](https://community.mp3tag.de/t/problem-with-blank-spaces-at-end-of-title-and-before-mp3/7251/4 "2026-02-09T12:21:07Z")

</div>


