update string to ObjectID method