trim whitespace from config