# how do make Action to add space between dashes?

**URL:** https://community.mp3tag.de/t/how-do-make-action-to-add-space-between-dashes/7242
**Category:** Support
**Created:** [September 26, 2008, 4:19am UTC](https://community.mp3tag.de/t/how-do-make-action-to-add-space-between-dashes/7242 "2008-09-26T04:19:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![M.A.X](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b9bd4f/32.png) [@M.A.X](https://community.mp3tag.de/u/M.A.X)
#### Post date: [September 26, 2008, 4:19am UTC](https://community.mp3tag.de/t/how-do-make-action-to-add-space-between-dashes/7242/1 "2008-09-26T04:19:49Z")

</div>

Hi

I'm wondering how to implement an Action which will modify the FILENAME of my mp3 files, and add spaces between dashes "-" in the filename (if the spaces are not already there).

Some example of what I'm wanting it to do:

1. If there are no spaces around the dashes, they are added:  
ex) "artist-title" \>Action\> "artist - title"

2. If there is space on only one side of the dash, the other space is added:  
ex) "artist- title" \>Action\> "artist - title"  
OR  
ex) "artist -title" \>Action\> "artist - title"

3. If there is already space, do nothing  
ex) "artist - title" \>Action does nothing because filename already meets the condition

I tried implementing a Replace action as follows:

Replace "\_FILENAME": "-" -\> " - "

But the problem with this is that it adds space around all dashes, so ALL my filenames just get extra spaces, not just the ones with no spaces around the dashes.

---

<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: [September 26, 2008, 6:03am UTC](https://community.mp3tag.de/t/how-do-make-action-to-add-space-between-dashes/7242/2 "2008-09-26T06:03:17Z")

</div>

You may replace the upcoming double spaces wth one space by a second replace run.

DD.20080926.1002.CEST

---

<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:21pm UTC](https://community.mp3tag.de/t/how-do-make-action-to-add-space-between-dashes/7242/3 "2026-02-09T12:21:07Z")

</div>


