# Removing some of blank spaces after brackets

**URL:** <https://community.mp3tag.de/t/removing-some-of-blank-spaces-after-brackets/18673>\
**Category:** Support\
**Created:** [February 6, 2017, 1:02pm UTC](https://community.mp3tag.de/t/removing-some-of-blank-spaces-after-brackets/18673 "2017-02-06T13:02:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)\
**Post date:** [February 6, 2017, 1:02pm UTC](https://community.mp3tag.de/t/removing-some-of-blank-spaces-after-brackets/18673/1 "2017-02-06T13:02:43Z")

</div>

I have this problem with brackets

Some time ago I expanded my actions used for automatic cleaning of errors in tags. Unfortunately, it seems that by taking care of some of my common mistakes are created a problem, discovered later on. And the new issue with my tags is this: I get unnecessary space after the \>\>)\<\< sign. So I end up with something like

```
Symphony #11 In G Minor (The Year 1905) , Opus #103, Movement 1: Adagio (The Palace Square)instead of correct
Symphony #11 In G Minor (The Year 1905), Opus #103, Movement 1: Adagio (The Palace Square)[please note that I do not have issue a pause added at the end of the TITLE / FILENAME]

```

So I would like to kindly ask for two things:

**A]** Code for a filter, that would point out all files that have pauses put between \>\>)\<\< and a sign, that is not a letter or number. So that I can manually check what other cases they are, because right now I can only think of \>\>) ,\<\< and \>\>) !\<\< and \>\>) ?\<\< but I may be missing some others; so that I can avert a hypothetical another new issue, discovered later on  
  
**B]** Code for an action, that would remove pauses put between \>\>)\<\< and a sign, that is not a letter or number

---

<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:** [February 6, 2017, 5:34pm UTC](https://community.mp3tag.de/t/removing-some-of-blank-spaces-after-brackets/18673/2 "2017-02-06T17:34:28Z")

</div>

I do not think that the () are the problem.  
I think it is the problem that there should not be a leading blank in front of punctuation.

So, a $replace(%title%,' ,',',',' .','.',' !','!',' ?','?',' :',':',' )',')','( ','(',' ;',';')  
should solve it.

---

<div class="post-metadata">

**Author:** ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)\
**Post date:** [February 7, 2017, 8:44pm UTC](https://community.mp3tag.de/t/removing-some-of-blank-spaces-after-brackets/18673/3 "2017-02-07T20:44:32Z")

</div>

> [@ohrenkino](#):
>
> I do not think that the () are the problem.  
> I think it is the problem that there should not be a leading blank in front of punctuation.

That's it

Now it seems so obvious

> [@ohrenkino](#):
>
> So, a $replace(%title%,' ,',',',' .','.',' !','!',' ?','?',' :',':',' )',')','( ','(',' ;',';')  
> should solve it.

And expand it even further, also \>\>...\<\< should be included. But that is already covered with a single dot case. As for the brackets themselves, those are already covered in other part of my cleaning action

So [my] full code concerning this issues goes like this

```
$replace(%TILE%,' ,',',',' .','.',' :',':',';',';',' !','!',' ?','?',)
$replace(%_FILENAME%,' ,',',',' .','.',';',';',' !','!',' §','§',)[The "§" is in my book a way of dealing with the illegal character >>?<<, and the >>..<< is the equivalent of >>:<<]

```

Problem solved, thank you very much

---

<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:26pm UTC](https://community.mp3tag.de/t/removing-some-of-blank-spaces-after-brackets/18673/4 "2026-02-09T12:26:39Z")

</div>


