# Different spaces between Title and Artist

**URL:** <https://community.mp3tag.de/t/different-spaces-between-title-and-artist/59674>\
**Category:** Support\
**Created:** [January 12, 2023, 3:20pm UTC](https://community.mp3tag.de/t/different-spaces-between-title-and-artist/59674 "2023-01-12T15:20:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ian\_Werich](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/9de0a6/32.png) [@Ian\_Werich](https://community.mp3tag.de/u/Ian_Werich)\
**Post date:** [January 12, 2023, 3:20pm UTC](https://community.mp3tag.de/t/different-spaces-between-title-and-artist/59674/1 "2023-01-12T15:20:48Z")

</div>

Hi everyone,

I already know how to split a field which contains either **Title** and **Artist** but I'm now searching a way to do the same if Title and Artist are separated by spaces of variable length as in the attached screenshot.

Thank you in advance.  
Ian

![Spaces betwenn Title and Artist](https://community.mp3tag.de/uploads/default/original/2X/b/b18c1fd4d072f6d8a3e07a6f0dbd7c32d333bd70.png)

---

<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:** [January 12, 2023, 3:26pm UTC](https://community.mp3tag.de/t/different-spaces-between-title-and-artist/59674/2 "2023-01-12T15:26:54Z")

</div>

Import the data with a mask that has at least 2 adjacent space characters between the data for TITLE and ARTIST, e.g  
`%title%..%artist%`  
where each dot represents a space character.  
Then process the fields that got the superfluous space characters with  
Convert\>Tag-Tag e.g for ARTIST  
Format string: `$trim(%artist%)`  
to remove the leading and trailing spaces.

---

<div class="post-metadata">

**Author:** ![Ian\_Werich](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/9de0a6/32.png) [@Ian\_Werich](https://community.mp3tag.de/u/Ian_Werich)\
**Post date:** [January 12, 2023, 4:11pm UTC](https://community.mp3tag.de/t/different-spaces-between-title-and-artist/59674/3 "2023-01-12T16:11:24Z")

</div>

Works great! Thank you very much!!!

---

<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 11, 2023, 4:11pm UTC](https://community.mp3tag.de/t/different-spaces-between-title-and-artist/59674/4 "2023-02-11T16:11:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
