# How can I "erase" the blank space at the end of title?

**URL:** https://community.mp3tag.de/t/how-can-i-erase-the-blank-space-at-the-end-of-title/12575
**Category:** Support
**Created:** [October 8, 2011, 9:39am UTC](https://community.mp3tag.de/t/how-can-i-erase-the-blank-space-at-the-end-of-title/12575 "2011-10-08T09:39:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pepeillo001](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/7cd45c/32.png) [@pepeillo001](https://community.mp3tag.de/u/pepeillo001)
#### Post date: [October 8, 2011, 9:39am UTC](https://community.mp3tag.de/t/how-can-i-erase-the-blank-space-at-the-end-of-title/12575/1 "2011-10-08T09:39:47Z")

</div>

Hi,

I want to erase the blank space that sometimes I have at the end of title or artist. I want to "search" all my entire CD list and do it, ¿it's possible?.

I have no find any "string" to do it.

Greetings. Pachu.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [October 8, 2011, 12:56pm UTC](https://community.mp3tag.de/t/how-can-i-erase-the-blank-space-at-the-end-of-title/12575/2 "2011-10-08T12:56:05Z")

</div>

three steps as the following example refers to mp3tag 2.49:  
Update your version to 2.49  
e.g. if you want to look for superfluous spaces in the field ARTIST  
set a filter  
`"$if($eql(%artist%,$trim%(%artist%)),1,0)" IS 0`

the create an action that formats the field:  
Field: ARTIST  
Format string: $trim(%artist%)

If you want to perform that action on other fields, set that variable instead of %artist%.

this strips any leading or trailing blanks from the named field.

Edit: the filter expression showed a $artist% in the first version - I corrected that.

---

<div class="post-metadata">

### Author: ![pepeillo001](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/7cd45c/32.png) [@pepeillo001](https://community.mp3tag.de/u/pepeillo001)
#### Post date: [October 8, 2011, 1:34pm UTC](https://community.mp3tag.de/t/how-can-i-erase-the-blank-space-at-the-end-of-title/12575/3 "2011-10-08T13:34:12Z")

</div>

> [@ohrenkino](#):
>
> three steps as the following example refers to mp3tag 2.49:  
> Update your version to 2.49  
> e.g. if you want to look for superfluous spaces in the field ARTIST  
> set a filter  
> "$if($eql($artist%,$trim%(artist%)),1,0)" IS 0
> 
> the create an action that formats the field:  
> Field: ARTIST  
> Format string: $trim(%artist%)
> 
> If you want to perform that action on other fields, set that variable instead of %artist%.
> 
> this strips any leading or trailing blanks from the named field.

Many, many thanks, it works fine.

Greetings. Pachu.

---

<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: [June 25, 2023, 8:02am UTC](https://community.mp3tag.de/t/how-can-i-erase-the-blank-space-at-the-end-of-title/12575/5 "2023-06-25T08:02:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
