private boolean isAdjacent(String a, String b, int length) {
            int count = 0,
                    i = 0;
            char[] charA = a.toCharArray();
            char[] charB = b.toCharArray();
            while (count <= 1 && i < length) {
                if (charA[i] != charB[i]) {
                    count++;
                }
                i++;
            }
            
            if (count == 1) {
                return true;
            } else {
                return false;
            }
        }