# Escape comma in String Format

**URL:** https://community.mp3tag.de/t/escape-comma-in-string-format/19049
**Category:** General Discussion
**Created:** [June 15, 2017, 1:32pm UTC](https://community.mp3tag.de/t/escape-comma-in-string-format/19049 "2017-06-15T13:32:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hillcreative](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/e47774/32.png) [@hillcreative](https://community.mp3tag.de/u/hillcreative)
#### Post date: [June 15, 2017, 1:32pm UTC](https://community.mp3tag.de/t/escape-comma-in-string-format/19049/1 "2017-06-15T13:32:27Z")

</div>

I'm doing a tag import using a CSV file and the following string format: %artist%,%title%,%album%,%year%,%genre%

How do I modify the import string so a comma inside %artist% doesn't break the import?

---

<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: [June 15, 2017, 2:11pm UTC](https://community.mp3tag.de/t/escape-comma-in-string-format/19049/2 "2017-06-15T14:11:55Z")

</div>

Enclose a field with " like  
"%artist%",%album%  
BUT: the same separators have to be found in the data source:  
"Dave Dee, Dozy, Beaky, Mick & Tich",Fresh Ear

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [June 15, 2017, 2:35pm UTC](https://community.mp3tag.de/t/escape-comma-in-string-format/19049/3 "2017-06-15T14:35:12Z")

</div>

> [@hillcreative](#):
>
> I'm doing a tag import using a CSV file and the following string format: %artist%,%title%,%album%,%year%,%genre%  
> How do I modify the import string so a comma inside %artist% doesn't break the import?

Read there ...  
[https://en.wikipedia.org/wiki/Comma-separated\_values](https://en.wikipedia.org/wiki/Comma-separated_values)  
"Fields containing a line-break, double-quote or commas should be quoted. (If they are not, the file will likely be impossible to process correctly)."  
Example from there ...  
1997,Ford,E350,"Super, luxurious truck"

Therefore you have to modify the content within the input file too ...  
and take care to adapt the modification into the formatstring within the dialog "Text file - Tag".

DD.20170615.1835.CEST
