check if the string is a valid hex-encoded representation of a MongoDB ObjectId
bool isMongoId(String str) => (isHexadecimal(str) && str.length == 24);