Added mismatched paren handling