public static int isBinary(String str) {
        if (str == null || str.isEmpty()) {
            return -1;
        }
        return str.matches("[01]+") ? MIN_RADIX : -1;
    }
@Test
    public void isBinary_Test() {
        Assertions.assertEquals(2, TbUtils.isBinary("1100110"));
        Assertions.assertEquals(-1, TbUtils.isBinary("2100110"));
    }