# Replace function doesn't remove spaces

**URL:** <https://community.mp3tag.de/t/replace-function-doesnt-remove-spaces/46334>\
**Category:** Support\
**Created:** [September 4, 2019, 9:47pm UTC](https://community.mp3tag.de/t/replace-function-doesnt-remove-spaces/46334 "2019-09-04T21:47:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shinsakamoto](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/77aa72/32.png) [@shinsakamoto](https://community.mp3tag.de/u/shinsakamoto)\
**Post date:** [September 4, 2019, 9:47pm UTC](https://community.mp3tag.de/t/replace-function-doesnt-remove-spaces/46334/1 "2019-09-04T21:47:55Z")

</div>

replace function has a little bug  
when trying to execute replace command:  
$replace(%title%,'] [','] [' )  
on the %title% string:  
Lonely [Amy's Theme] [J.Sebastian] [1967]  
this function doesn't remove the "spaces" before char "J" and "1"

---

<div class="post-metadata">

**Author:** ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)\
**Post date:** [September 5, 2019, 3:26am UTC](https://community.mp3tag.de/t/replace-function-doesnt-remove-spaces/46334/2 "2019-09-05T03:26:56Z")

</div>

This does: `$replace(%title%,'] [','] [')`  
There is a space before the closing bracket in the original.

It is always annoying when someone misuses a feature of an application and then reports a bug because it doesn't give the desired result.  
Better to ask questions in the Support section, especially if you are a new user.

---

<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:28pm UTC](https://community.mp3tag.de/t/replace-function-doesnt-remove-spaces/46334/3 "2026-02-09T12:28:14Z")

</div>


