# How To Insert A Phrase "X" Spaces From The End Of The Album Name

**URL:** https://community.mp3tag.de/t/how-to-insert-a-phrase-x-spaces-from-the-end-of-the-album-name/13421
**Category:** Support
**Created:** [May 14, 2012, 5:48am UTC](https://community.mp3tag.de/t/how-to-insert-a-phrase-x-spaces-from-the-end-of-the-album-name/13421 "2012-05-14T05:48:18Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![LouieChuckyMerry](https://community.mp3tag.de/user_avatar/community.mp3tag.de/louiechuckymerry/32/367_2.png) [@LouieChuckyMerry](https://community.mp3tag.de/u/LouieChuckyMerry)
#### Post date: [May 14, 2012, 5:48am UTC](https://community.mp3tag.de/t/how-to-insert-a-phrase-x-spaces-from-the-end-of-the-album-name/13421/1 "2012-05-14T05:48:18Z")

</div>

Hello, and thanks in advance for any help. I've been using Actions for a while (thanks again to all for any earlier assistance 🙂 ) but just ran into a problem for which I can't find a solution, although I'm sure it's not so difficult. I title my albums "%album%{%year%}" but sometimes eventually edit the album, so I'm trying to create an Action to add the phrase "[Edit]" seven spaces from the end of the album title, between the last character of the album title and the first brace containing the year. I've successfully made an Action with the field "ALBUM" and the string value "%album%'['Edit']'", but I can't figure out how to place the "[Edit]" seven (7) digits from the end of the album title. Any help is greatly appreciated; thanks again for your time.

Edit: apologies for my initial post. I fat-fingered the Enter key accidently 😉 .

Edit 2: "{" is a brace, not a parenthesis or a bracket 😳 .

---

<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: [May 14, 2012, 6:03am UTC](https://community.mp3tag.de/t/how-to-insert-a-phrase-x-spaces-from-the-end-of-the-album-name/13421/2 "2012-05-14T06:03:27Z")

</div>

> [@LouieChuckyMerry](#):
>
> How To Insert A Phrase "X" Spaces From The End Of The Album Name, Adding A Format Value In A Specific Location In A String

An example would really be helpful.  
How to append a field with something else has been described exhaustively in the FAQs.  
[/t/967/1](https://community.mp3tag.de/t/967/1)  
If this does not fit it: what do you want?

---

<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: [May 14, 2012, 9:36am UTC](https://community.mp3tag.de/t/how-to-insert-a-phrase-x-spaces-from-the-end-of-the-album-name/13421/3 "2012-05-14T09:36:27Z")

</div>

> [@LouieChuckyMerry](#):
>
> ... I title my albums "%album%{%year%}" ... I'm trying to create an Action to add the phrase "[Edit]" seven spaces from the end of the album title, between the last character of the album title and the first brace containing the year. ... Any help is greatly appreciated; thanks again for your time.

Action: Format value  
Field: ALBUM  
Formatstring: **$left(%ALBUM%,$sub($len(%ALBUM%),6))'[Edit]'$right(%ALBUM%,7)**  
From:  
The Album {2012}  
To:  
The Album [Edit] {2012}

DD.20120514.1336.CEST

---

<div class="post-metadata">

### Author: ![LouieChuckyMerry](https://community.mp3tag.de/user_avatar/community.mp3tag.de/louiechuckymerry/32/367_2.png) [@LouieChuckyMerry](https://community.mp3tag.de/u/LouieChuckyMerry)
#### Post date: [May 14, 2012, 11:11am UTC](https://community.mp3tag.de/t/how-to-insert-a-phrase-x-spaces-from-the-end-of-the-album-name/13421/4 "2012-05-14T11:11:57Z")

</div>

> [@DetlevD](#):
>
> Action: Format value  
> Field: ALBUM  
> Formatstring: **$left(%ALBUM%,$sub($len(%ALBUM%),6))'[Edit]'$right(%ALBUM%,7)**  
> From:  
> The Album {2012}  
> To:  
> The Album [Edit] {2012}
> 
> DD.20120514.1336.CEST

Thank you very much for your reply, DetlevD. I think that I wasn't clear in my original post. I want to create an Action to change

From:  
The Album{2012}  
To:  
The Album[Edit]{2012}

When I tried your above Formatstring the result was

From:  
The Album{2012}  
To:  
The Album[Edit] **_m_** {2012}

I edited your suggested Formatstring to "$left(%ALBUM%,$sub($len(%ALBUM%),6))'[Edit]'$right(%ALBUM%,_ **6** _)" (changing the "7" to a "6") and is seems to work--dumb luck, that--but I wanted to check with you that this will always be correct because, to my eyes, your Formatstring is an alien language 😆 . Thanks again.

---

<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: [May 14, 2012, 2:23pm UTC](https://community.mp3tag.de/t/how-to-insert-a-phrase-x-spaces-from-the-end-of-the-album-name/13421/5 "2012-05-14T14:23:47Z")

</div>

> [@LouieChuckyMerry](#):
>
> Thank you very much for your reply, DetlevD. ... and is seems to work--dumb luck, that-- but I wanted to check with you that this will always be correct because, to my eyes, your Formatstring is an alien language 😆 . Thanks again.

As you have seen within my proposal, I have erroneously placed an additional space character.  
You have noticed this, and with a little adjustment by you, the proposal works for your situation now.

The "alien language" is a simple expression of the Mp3tag Scripting Language.  
Try to understand how the Mp3tag scripting language works and how it can help you to solve your special desires, beyond the obvious tool set of converters and actions.

DD.20120514.1823.CEST

---

<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: [May 14, 2012, 2:39pm UTC](https://community.mp3tag.de/t/how-to-insert-a-phrase-x-spaces-from-the-end-of-the-album-name/13421/6 "2012-05-14T14:39:03Z")

</div>

You can also use $cutright(%album%,6)'[Edit]'$right(%ALBUM%,6)

---

<div class="post-metadata">

### Author: ![LouieChuckyMerry](https://community.mp3tag.de/user_avatar/community.mp3tag.de/louiechuckymerry/32/367_2.png) [@LouieChuckyMerry](https://community.mp3tag.de/u/LouieChuckyMerry)
#### Post date: [May 15, 2012, 1:00am UTC](https://community.mp3tag.de/t/how-to-insert-a-phrase-x-spaces-from-the-end-of-the-album-name/13421/7 "2012-05-15T01:00:11Z")

</div>

DetlevD: thanks for the confirmation.

dano: thanks for your input. The Formatstring you offered also works.

I really appreciate both of your help, thanks again.

---

<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:23pm UTC](https://community.mp3tag.de/t/how-to-insert-a-phrase-x-spaces-from-the-end-of-the-album-name/13421/8 "2026-02-09T12:23:50Z")

</div>


