trim whitespace from candidates