Strip whitespace from some attributes.