Cleanup attribute formatting.