# Operating with 2 sets of brackets ((Part 2))

**URL:** https://community.mp3tag.de/t/operating-with-2-sets-of-brackets-part-2/70963
**Category:** Support
**Created:** [March 29, 2026, 1:57am UTC](https://community.mp3tag.de/t/operating-with-2-sets-of-brackets-part-2/70963 "2026-03-29T01:57:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Kev\_Vader](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/a9adbd/32.png) [@Kev\_Vader](https://community.mp3tag.de/u/Kev_Vader)
#### Post date: [March 29, 2026, 1:57am UTC](https://community.mp3tag.de/t/operating-with-2-sets-of-brackets-part-2/70963/1 "2026-03-29T01:57:42Z")

</div>

Hi All,

I have been using the two scripts provided here

> [@Operating with 2 sets of brackets](https://community.mp3tag.de/t/operating-with-2-sets-of-brackets/69478/3):
>
> @flowrian Please test your answer before posting. The above solution does not work as you can see from the missing preview wink

in relation to tags with two sets of bracket, and it has been working well, or so I thought! I’ve noticed that the process results in a blank space remaining at the end of each title. So I have two questions:

1: How do I modify the original scripts to prevent them leaving a trailing blank space?

2: What would be the simplest method to batch process an entire folder to remove trailing blanks from all the tags?

Thanks!

Kevin

---

<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: [March 29, 2026, 6:08am UTC](https://community.mp3tag.de/t/operating-with-2-sets-of-brackets-part-2/70963/2 "2026-03-29T06:08:48Z")

</div>

1: Try `$regexp(%TITLE%,(.*) \((\d{4})\)$,$1)`  
2: Try Convert\>Tag-Tag or an action of the type "Format value" for TITLE  
Format String: `$trim(%title%)`

You can filter for files that need treatment:  
`"$if($eql($len(%title%),$len($trim(%title%))),1,0)" IS "0"`

---

<div class="post-metadata">

### Author: ![Kev\_Vader](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/a9adbd/32.png) [@Kev\_Vader](https://community.mp3tag.de/u/Kev_Vader)
#### Post date: [March 29, 2026, 6:16am UTC](https://community.mp3tag.de/t/operating-with-2-sets-of-brackets-part-2/70963/3 "2026-03-29T06:16:21Z")

</div>

> [@ohrenkino](#):
>
> $trim(%title%)

Thanks for the fast reply!

Both those solutions work perfectly!!

Thanks!!

Kevin

---

<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: [April 5, 2026, 6:16am UTC](https://community.mp3tag.de/t/operating-with-2-sets-of-brackets-part-2/70963/4 "2026-04-05T06:16:22Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
