remove the extra space before the last parenthesis