# Remove Leading \\ Trailing Space

**URL:** https://community.mp3tag.de/t/remove-leading-trailing-space/14683
**Category:** Support
**Created:** [April 29, 2013, 9:45pm UTC](https://community.mp3tag.de/t/remove-leading-trailing-space/14683 "2013-04-29T21:45:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Beluna](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ed655f/32.png) [@Beluna](https://community.mp3tag.de/u/Beluna)
#### Post date: [April 29, 2013, 9:45pm UTC](https://community.mp3tag.de/t/remove-leading-trailing-space/14683/1 "2013-04-29T21:45:03Z")

</div>

What action will remove the space from the example below? Tried from the example given

\s+$ but nothing happen...

I would like this

Vocal : carmen McRae

To look like this:

Vocal: Carmen McRae

- I have the action to Cap after white space.

Thanks

---

<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: [April 30, 2013, 4:18am UTC](https://community.mp3tag.de/t/remove-leading-trailing-space/14683/2 "2013-04-30T04:18:46Z")

</div>

You do not tell what kind of action you have applied.  
I think a simple "Replace" action would do:  
Search  
:  
Replace  
:  
Instead of typing hit the space bar.

Or you experiment a little with your exprssion but leave out the $ as this describes the "end of field" so that your expression only removes spaces at the end of a field but not in the middle.

---

<div class="post-metadata">

### Author: ![Beluna](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ed655f/32.png) [@Beluna](https://community.mp3tag.de/u/Beluna)
#### Post date: [April 30, 2013, 10:33am UTC](https://community.mp3tag.de/t/remove-leading-trailing-space/14683/3 "2013-04-30T10:33:30Z")

</div>

> [@ohrenkino](#):
>
> You do not tell what kind of action you have applied.  
> I think a simple "Replace" action would do:  
> Search  
> :  
> Replace  
> :  
> Instead of typing hit the space bar.
> 
> Or you experiment a little with your exprssion but leave out the $ as this describes the "end of field" so that your expression only removes spaces at the end of a field but not in the middle.

I've seen this problem before - can't recall how to solve it.

Carmen McRae : vocals, Piano  
Freddie Hubbard : trumpet, Flugelhorn  
Hank Crawford : alto Saxophone, Grover Washington,Jr.

If you notice after the ":" The first letter should be Capped as in Vocal, Trumpet, Alto; however it sps the first word and caps everything after that.

The problem i found has to do with the whitespace between : and the first word vocal, trumpet, alto.

If I mamually remove the space, all words are capped.

somehow : is not being recognized.

The action I'm using from the tutorials:

Replace with expressions

: ^\s+

\b([\t]+|\s|\s+[\t]+|[\t]+\s+|\s+[\t]+\s+)(\w)  
$1$upper($2)

Basically, I want it to find all whitespace after : and replace with

Carmen McRae : Vocals, Piano  
Freddie Hubbard : Trumpet, Flugelhorn  
Hank Crawford : Alto Saxophone, Grover Washington,Jr.

Again, manually, if i remove the space... the current action works.

Hope that helps.

---

<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:24pm UTC](https://community.mp3tag.de/t/remove-leading-trailing-space/14683/4 "2026-02-09T12:24:28Z")

</div>


