I am trying to remove everything between curly braces in a string, and trying to do that recursivesly.
And I am returning x here when the recursion is over, but
Note that it is easier to use regular expressions:
import re
strs = "i am a string but i've some {text in brackets} braces, and here are some more {i am the second one} braces"
strs = re.sub(r'{.*?}', '', strs)