Make StrObject attributes read-only