# Strip Specific last character of a Tag File

**URL:** https://community.mp3tag.de/t/strip-specific-last-character-of-a-tag-file/9261
**Category:** Support
**Created:** [November 4, 2009, 2:40pm UTC](https://community.mp3tag.de/t/strip-specific-last-character-of-a-tag-file/9261 "2009-11-04T14:40:40Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![thorsonb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/e9a140/32.png) [@thorsonb](https://community.mp3tag.de/u/thorsonb)
#### Post date: [November 4, 2009, 2:40pm UTC](https://community.mp3tag.de/t/strip-specific-last-character-of-a-tag-file/9261/1 "2009-11-04T14:40:40Z")

</div>

Good day.

How do I get my Mp3Tag to strip a certain character of a field?

Eg.  
I rename most of my music filenames by\>\> %artist% - %Album% - %Title%

But at times my "Artist field" is a bit messed up it might have sum unwanted spaces in it

eg.

```
"Elvis Presly "

```

As you see it has 5 spaces! and if I were to rename the file feature i would get something like  
"Elvis Presly - %album% - %title%.mp3

I would like Mp3Tag to realize that if the last character is a Space (in every field, Artist, Album, Title ect..) to remove/strip the space character out of the tag!

Thanks in advance!

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 4, 2009, 5:26pm UTC](https://community.mp3tag.de/t/strip-specific-last-character-of-a-tag-file/9261/2 "2009-11-04T17:26:05Z")

</div>

Hi, have a look at the FAQ:  
[/t/967/1](https://community.mp3tag.de/t/967/1)  
[/t/967/1](https://community.mp3tag.de/t/967/1)

---

<div class="post-metadata">

### Author: ![thorsonb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/e9a140/32.png) [@thorsonb](https://community.mp3tag.de/u/thorsonb)
#### Post date: [November 22, 2009, 12:10pm UTC](https://community.mp3tag.de/t/strip-specific-last-character-of-a-tag-file/9261/3 "2009-11-22T12:10:37Z")

</div>

**ok i still dont get it :slight\_smile:** [size="4"][/size]

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 22, 2009, 5:38pm UTC](https://community.mp3tag.de/t/strip-specific-last-character-of-a-tag-file/9261/4 "2009-11-22T17:38:45Z")

</div>

I made a video  
[http://www.vimeo.com/7756545](http://www.vimeo.com/7756545)  
Hope it helps.

---

<div class="post-metadata">

### Author: ![thorsonb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/e9a140/32.png) [@thorsonb](https://community.mp3tag.de/u/thorsonb)
#### Post date: [January 8, 2010, 10:50pm UTC](https://community.mp3tag.de/t/strip-specific-last-character-of-a-tag-file/9261/5 "2010-01-08T22:50:19Z")

</div>

Hey Great Video!... (stupid)Question though.. ( I havent added the code as yet, I dont have my media Server with me @ a friends house at the moment)

But will it work for only ONE space character also... I'm guessing it does.

But just to verify!

Thanks alot for helping out people like me who know nothing!

happy New years!

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [January 8, 2010, 11:02pm UTC](https://community.mp3tag.de/t/strip-specific-last-character-of-a-tag-file/9261/6 "2010-01-08T23:02:43Z")

</div>

> [@ThorsonB](#):
>
> ... Thanks alot for helping out people like me who know nothing! ...

Oh no, that's not quite right - you already know how to write colorful big letters!

DD.20100109.0102.CET

---

<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/strip-specific-last-character-of-a-tag-file/9261/7 "2026-02-09T12:21:55Z")

</div>


