# Removing a specific value - but only for a specific fileformat

**URL:** https://community.mp3tag.de/t/removing-a-specific-value-but-only-for-a-specific-fileformat/56435
**Category:** Support
**Created:** [February 22, 2022, 6:29pm UTC](https://community.mp3tag.de/t/removing-a-specific-value-but-only-for-a-specific-fileformat/56435 "2022-02-22T18:29:41Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)
#### Post date: [February 23, 2022, 3:06pm UTC](https://community.mp3tag.de/t/removing-a-specific-value-but-only-for-a-specific-fileformat/56435/7 "2022-02-23T15:06:18Z")

</div>

> [@ohrenkino](#):
>
> [...]  
> I have just scanned my collection and found "Whole lotta love", "Gotta be strarting something", "Loretta", "Violetta" as part of a Verdi opera, "Outtake" as part of a title, "Attack of the clones" - so there are a lot of titles (and probably filenames) with tta in them  
> I also wonder how the presence of these 3 letters would lead to
> 
> > [@Zerow](#):
> >
> > data loss

> [@LyricsLover](#):
>
> [...]  
> As @ohrenkino told you: This will also remove the bold marked text from titles:  
> Let **tta** and Cathode  
> or  
> Too young **tta** way

Either I am unable to imagine negative consequence - or both of you did not understand me  
` `  
` `  
The data loss will occur precisely in such cases like @ohrenkino examples - if I will not use the first fail safe [i.e. " tta" with a pause]

All in all, based on this

> [@LyricsLover](#):
>
> > [@Zerow](#):
> >
> > But I need this as an single action; as in using a single groups action and not combining it with other Mp3tag features
> 
> If you really want to go that way, you could use something like this in your "Format value" action:  
> `$if($eql('TTA',$upper(%_extension%)),$repl(%TITLE%,' tta ',' '),)`
> 
> [...]

I went with

```auto
$if($eql('TTA',$upper(%_EXTENSION%)),$repl(%TITLE%,' tta',' '),)
$if($eql('TTA',$upper(%_EXTENSION%)),$repl(%TITLE%,' TTA',' '),)
$if($eql('TTA',$lower(%_EXTENSION%)),$repl(%TITLE%,' tta',' '),)
$if($eql('TTA',$lower(%_EXTENSION%)),$repl(%TITLE%,' TTA',' '),)

```

as I failed at adding `The fourth optional parameter enables ignore case (1)` [[Scripting Functions – Mp3tag Documentation](https://docs.mp3tag.de/scripting)]; i.e. those did not work

```auto
$if($eql('TTA',$upper(%_EXTENSION%)),$repl(%TITLE%,' tta',' ',1),)
$if($eql('TTA',$lower(%_EXTENSION%)),$repl(%TITLE%,' tta',' ',1),)

```

and neither did those

```auto
$if($eql('TTA',$upper(%_EXTENSION%)),$repl(%TITLE%,' tta',' '),1)
$if($eql('TTA',$lower(%_EXTENSION%)),$repl(%TITLE%,' tta',' '),1)

```

` `  
` `  
And on the side note- I stumbled upon a bug: [Similar actions get mixed up when using abbreviated function name](https://community.mp3tag.de/t/similar-actions-get-mixed-up/56456)

---

_[View the full topic](https://community.mp3tag.de/t/removing-a-specific-value-but-only-for-a-specific-fileformat/56435)._
