# Additional spaces when renaming files

**URL:** https://community.mp3tag.de/t/additional-spaces-when-renaming-files/54088
**Category:** Support
**Created:** [August 16, 2021, 10:07pm UTC](https://community.mp3tag.de/t/additional-spaces-when-renaming-files/54088 "2021-08-16T22:07:40Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [August 17, 2021, 12:14pm UTC](https://community.mp3tag.de/t/additional-spaces-when-renaming-files/54088/3 "2021-08-17T12:14:46Z")

</div>

If the added spaces are something that could have happened more than once, perhaps a look at the FAQs gives a hint on how to solve that problem without the need to edit each track manually:

> [@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…

---

_[View the full topic](https://community.mp3tag.de/t/additional-spaces-when-renaming-files/54088)._
