Attribute formatting.
Clean up attributes.