# Strip last 4 characters away from Title field

**URL:** https://community.mp3tag.de/t/strip-last-4-characters-away-from-title-field/6073
**Category:** Support
**Created:** [January 15, 2008, 10:50am UTC](https://community.mp3tag.de/t/strip-last-4-characters-away-from-title-field/6073 "2008-01-15T10:50:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![christian\_s](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/f05b48/32.png) [@christian\_s](https://community.mp3tag.de/u/christian_s)
#### Post date: [January 15, 2008, 10:50am UTC](https://community.mp3tag.de/t/strip-last-4-characters-away-from-title-field/6073/1 "2008-01-15T10:50:47Z")

</div>

Hi,  
I'm importing tags from a txt file and I would like to exclude the last 4 charecters that currently goes into the title field.

I've been trying something like this in Actions

$left(%title%, $len(%title%)-4)

my idea was that  
$len(%title%): returns the lenght of title field, ex 20 characters.  
$len(%title%)-4: then returns 16  
$left(%title%, 16) should then give me the first 16 characters for the title string.

But when I try to create a replace action I can get it too work.

Any ideas to what action type and how I should go about building this action is greatly appreciated

- Chr

---

<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: [January 15, 2008, 11:43am UTC](https://community.mp3tag.de/t/strip-last-4-characters-away-from-title-field/6073/2 "2008-01-15T11:43:53Z")

</div>

Try this action:

_Action type:_ **Format value**  
_Field:_ **TITLE**  
_Formatstring:_ **$left(%title%,$sub($len(%title%),4))**

---

<div class="post-metadata">

### Author: ![christian\_s](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/f05b48/32.png) [@christian\_s](https://community.mp3tag.de/u/christian_s)
#### Post date: [January 15, 2008, 11:44am UTC](https://community.mp3tag.de/t/strip-last-4-characters-away-from-title-field/6073/3 "2008-01-15T11:44:43Z")

</div>

ah - ok. thanks 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:20pm UTC](https://community.mp3tag.de/t/strip-last-4-characters-away-from-title-field/6073/4 "2026-02-09T12:20:42Z")

</div>


