Help with Strchr function

I am using Strchr function extensively.
I normally use it with other scripting functions to remove portion of text from title of the song.
For example I use following to remove any text/characters in 'title' tag beyond '-'.


So my title would become from abc - xyz to abc.

But if my title is like this abc (xyz) then I CAN NOT use the same scripting function as below

It gives me error. so I can not use ( (left bracket) as the separating character.
Any workaround to this?

Thanks for reading.


Just out of curiosity: isn't adding -2 something for $sub()