Cleanup equation printing for parentheses