# Error Using $cutright, $mid, $left with $len

**URL:** https://community.mp3tag.de/t/error-using-cutright-mid-left-with-len/61290
**Category:** Support
**Created:** [June 18, 2023, 2:35pm UTC](https://community.mp3tag.de/t/error-using-cutright-mid-left-with-len/61290 "2023-06-18T14:35:34Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [June 22, 2023, 12:33pm UTC](https://community.mp3tag.de/t/error-using-cutright-mid-left-with-len/61290/6 "2023-06-22T12:33:23Z")

</div>

Please don't cross-post!  
(You have already asked the same in [this thread](https://community.mp3tag.de/t/odd-replace-treats-artist-as-a-literal/61321))

Use an action " **Format value**" to rename your track filenames.  
Don't use "Replace" as @poster [already told you](https://community.mp3tag.de/t/odd-replace-treats-artist-as-a-literal/61321/6).

Use a format string with something like this:  
`$num(%TRACK%,2). $cutRight(%ARTIST%,9) - %TITLE%`

 ![image](https://community.mp3tag.de/uploads/default/original/2X/d/d39cecc7be3191bacd5feaa6fdc75b36a04ac1d8.png)  
This would result in a filename like:  
`01. Abba - Waterloo.mp3`

Or just reduce the format string to your example  
`%ARTIST%`  
if you only want to see the full content of ARTIST as your new track filename.  
For my above example this would result in this trackname:  
`Abba and more.mp3`

---

_[View the full topic](https://community.mp3tag.de/t/error-using-cutright-mid-left-with-len/61290)._
