Trim whitespace from commits