trim whitespace from hosts