Completion of parentheses