# Removing last title character when it is a comma (,)

**URL:** https://community.mp3tag.de/t/removing-last-title-character-when-it-is-a-comma/12355
**Category:** Support
**Created:** [August 1, 2011, 9:12am UTC](https://community.mp3tag.de/t/removing-last-title-character-when-it-is-a-comma/12355 "2011-08-01T09:12:51Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [August 1, 2011, 11:57am UTC](https://community.mp3tag.de/t/removing-last-title-character-when-it-is-a-comma/12355/4 "2011-08-01T11:57:16Z")

</div>

> [@Kimosavi](#):
>
> I need to remove a comma at the end of the title:  
> My Song,  
> ...

This removes all trailing commas.  
Action: Format value  
Field: TITLE  
Formatstring: **$trimRight(%TITLE%,',')**

This removes only one trailing comma, if the last character is a comma.  
Action: Format value  
Field: TITLE

**$if($eql($right(%TITLE%,1),','),$cutRight(%TITLE%,1),%TITLE%)**

See also:  
[Removing " , " at end of Artist field](https://community.mp3tag.de/t/10184/1)

DD.20110801.1626.CEST

---

_[View the full topic](https://community.mp3tag.de/t/removing-last-title-character-when-it-is-a-comma/12355)._
