public static boolean is_legal_label(String label) {
        if(label == null)
            throw new IllegalArgumentException("Label can't be null");

        int len = label.length();
        for(int i=0; i<len; i++) {
            if(label_bad_chars.indexOf(label.charAt(i)) != -1)
                return false;
        }
        return true;
    }