Removing useless parentheses while outputting