Slight whitespace consistency improvement:
Trim trailing whitespace. Remove unmatched " " before ")".