I've already parsed the line so that any incorrect syntax (i.e. an open paren without a closing paren) is an error and will not be an issue. Also, ((dfs) is ok, the second ( is just treated as an ordinary character within the outer parentheses.. that is to say, there is no nesting.
That said.. thanks very much for your help!