# Removing space at the end of a song

**URL:** https://community.mp3tag.de/t/removing-space-at-the-end-of-a-song/50646
**Category:** Support
**Created:** [October 31, 2020, 12:31pm UTC](https://community.mp3tag.de/t/removing-space-at-the-end-of-a-song/50646 "2020-10-31T12:31:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DJ-Y](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/b4bc9f/32.png) [@DJ-Y](https://community.mp3tag.de/u/DJ-Y)
#### Post date: [October 31, 2020, 12:31pm UTC](https://community.mp3tag.de/t/removing-space-at-the-end-of-a-song/50646/1 "2020-10-31T12:31:35Z")

</div>

Hi, is there a way to systematically remove a space et the end of a song title, artist that I may have added my mistake?

Thanks,

JY

---

<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: [October 31, 2020, 12:34pm UTC](https://community.mp3tag.de/t/removing-space-at-the-end-of-a-song/50646/2 "2020-10-31T12:34:48Z")

</div>

see the FAQs:

> [@Actions and batch-operations](https://community.mp3tag.de/t/actions-and-batch-operations/967/10):
>
> How to remove/trim leading and trailing spaces [Video tutorial for these actions](http://www.vimeo.com/7756545) Leading spaces: Action type: Replace with regular expressions Field: \_TAG Regular expression: ^\s+ Replace matches with: ^ matches the beginning of the string. Then \s+ searches for all whitespaces till a different char occurs. The whitespaces found will be replaced by nothing and, thus, deleted. Trailing spaces: Action type: Replace with regular expressions Field: \_TAG Regular expression: \s+$ Replace matc…

---

<div class="post-metadata">

### Author: ![Bidan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@Bidan](https://community.mp3tag.de/u/Bidan)
#### Post date: [November 27, 2022, 3:22pm UTC](https://community.mp3tag.de/t/removing-space-at-the-end-of-a-song/50646/3 "2022-11-27T15:22:13Z")

</div>

Yes, but hot to remove only ending spaces added by mistake. Ending, but not middle. Substitute "69 Eyes " for "69 Eyes"

---

<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: [November 27, 2022, 3:43pm UTC](https://community.mp3tag.de/t/removing-space-at-the-end-of-a-song/50646/4 "2022-11-27T15:43:48Z")

</div>

You can also try an action of the type "Format value" for ARTIST  
Format string: $trim(%artist%)  
which also removes leading and trailing space characters.

To replace several spaces in the middle, try an action of the type "Replace" for the field with  
Search: \_\_  
(which represents 2 space characters)  
Replace with: \_  
(a single space)

---

<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/removing-space-at-the-end-of-a-song/50646/5 "2026-02-09T12:28:54Z")

</div>


