# How to remove apostrophes and replace spaces with underscores?

**URL:** <https://community.mp3tag.de/t/how-to-remove-apostrophes-and-replace-spaces-with-underscores/17333>\
**Category:** Support\
**Created:** [October 28, 2015, 4:41am UTC](https://community.mp3tag.de/t/how-to-remove-apostrophes-and-replace-spaces-with-underscores/17333 "2015-10-28T04:41:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stealth](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@Stealth](https://community.mp3tag.de/u/Stealth)\
**Post date:** [October 28, 2015, 4:41am UTC](https://community.mp3tag.de/t/how-to-remove-apostrophes-and-replace-spaces-with-underscores/17333/1 "2015-10-28T04:41:28Z")

</div>

Okay so for renaming files I got it setup like this: $replace($num(%track%,2)-$lower(%artist%)-$lower(%title%), ,\_)  
This will give me a file name like: 01-artist\_name-file\_name's\_here.mp3  
What is the code to give me: 01-artist\_name-file\_names\_here.mp3

---

<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 28, 2015, 10:14am UTC](https://community.mp3tag.de/t/how-to-remove-apostrophes-and-replace-spaces-with-underscores/17333/2 "2015-10-28T10:14:01Z")

</div>

...  
$replace($num(%track%,2)-$lower(%artist%)-$lower(%title%), ,\_,'',)  
the code to give: 01-artist\_name-file\_names\_here.mp3

---

<div class="post-metadata">

**Author:** ![Stealth](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@Stealth](https://community.mp3tag.de/u/Stealth)\
**Post date:** [October 28, 2015, 12:54pm UTC](https://community.mp3tag.de/t/how-to-remove-apostrophes-and-replace-spaces-with-underscores/17333/3 "2015-10-28T12:54:58Z")

</div>

Thank you so much that did it!

---

<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:25pm UTC](https://community.mp3tag.de/t/how-to-remove-apostrophes-and-replace-spaces-with-underscores/17333/4 "2026-02-09T12:25:55Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


