Add parantheses balancing method