# 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:** 1
**Showing post:** 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!

---

_[View the full topic](https://community.mp3tag.de/t/strip-specific-last-character-of-a-tag-file/9261)._
