String Manipulation

Hi guys hope you can help me once again

I’m trying to remove part of a label. I know that part only can be [Fav] or [Broken]

On a program Addon, when I add something to the favorites it puts [Fav] on the label. I’m making a skin, so I have a indicator for that and already know how to show it.
But I want to remove the [fav] or [broken] or other [ ] from showing. How can I do it?

Show indicator

PHP Code:
<control type="image">
            <
centerright>110</centerright>
                        <
centertop>32</centertop>
                        <
width>32</width>
                        <
height>32</height>
                        <
aspectratio aligny="top">keep</aspectratio>
                        <
texture>indicator/fav.png</texture>
                        <
visible>String.Contains(ListItem.Title,"Fav")</visible>
    </
control

Thanks for the help in advance
Best regards