[docooler] valid parentheses