Yeah, but I think that would require knowledge of the underlying types and/or knowledge of the other validations. Either way, I think that oversteps the boundaries of strip_attributes. Plus, I think this edge case was possibly "broken" in all previous versions of strip_attributes already. 

Also, I'm actually not quite sure why this edge case causes the attribute to be invalid afterwards, even if we strip the whitespace from it first.