Extended string class with possible __dict__ members and AttributeError check