# Action - Trim whitespace

**URL:** https://community.mp3tag.de/t/action-trim-whitespace/47971
**Category:** General Discussion
**Created:** [February 24, 2020, 1:23pm UTC](https://community.mp3tag.de/t/action-trim-whitespace/47971 "2020-02-24T13:23:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![RussianMix](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/cc9497/32.png) [@RussianMix](https://community.mp3tag.de/u/RussianMix)
#### Post date: [February 24, 2020, 1:23pm UTC](https://community.mp3tag.de/t/action-trim-whitespace/47971/1 "2020-02-24T13:23:51Z")

</div>

I'd like to have an action that is similar to a $trim(x) function that will remove leading and trailing whitespace (space characters) available to apply to different tag fields.

Is there's way to use $trim(x) function within action without manually editing any script files?

---

<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: [February 24, 2020, 1:47pm UTC](https://community.mp3tag.de/t/action-trim-whitespace/47971/2 "2020-02-24T13:47:50Z")

</div>

> [@RussianMix](#):
>
> function within action without manually editing any script files

I don't understand. If you do not manually edit an action you don't get any changes.

Except the remove fields actions there is no action that allows a list of fields.

If you know which fields you want to trim, you can use an action of the type "Guess value" e.g. with  
Source: `$trim(%artist%)==$trim(%title%)==$trim(%album%)`  
Format string: `%artist%==%title%==%album%`
