Add str method to Object class