Thanks for the reply.
For the first requirement, I tried to split by using split method as below, but not giving exact result:
StaticString string : "1a23MyFunc(ab)0123MyFunc(1234)000"
StringKey = StaticString.split("MyFunc*");
output is : abc , (a)xyz, (1234)000
But I need: abc, xyz, 000
I tried to split with MyFunc(*), but it giving runtime error: Dangling meta character '*'
Can you please give me some assistance in solving this.