When trimming spaces, skip read-only attributes.