public boolean isInString(String string, String s) {
        int stringLength = string.length();
        int lowestCount = d;

        for (int i = 0; i < stringLength - this.k + 1; i++) {
            String compare = string.substring(i, i + this.k);
            int count = 0;
            for (int j = 0; j < this.k; j++) {
                if (compare.charAt(j) != s.charAt(j)) {
                    count++;
                }
            }
            if (count <= lowestCount) {
                return true;
            }
        }

        return false;
    }