Check for the format of the document id (ObjectId)