Removes unnecessary parentheses and semicolon