Check string Oid with instanceof before convert it