Throw exception in case of unmatched paranthesis

Now also in case of missing opening parathesis