private void printCharacterAlignment(String w1, String w2) throws IOException {

        String wd = EditDistanceAligner.getKey(w1.toLowerCase(), w2.toLowerCase());
        String[] ws = wd.split("\\|");


        int add = 0;
        if (contextSize > 0) {
            add = printBeforeContext();
        }

        if (!charAlignments.containsKey(wd + "\\|" + add)) {
            createCharacterAlignments(wd, w1, w2, add);
        }

        for (int i = 0; i < ws[0].length(); i++) {
            if (i != 0) {
                System.out.print(" ");
            }
            System.out.print((ws[0]).charAt(i));
        }

        if (contextSize > 0) {
            printAfterContext();
        }

        System.out.print(" ||| ");

        for (int i = 0; i < ws[1].length(); i++) {
            if (i != 0) {
                System.out.print(" ");
            }
            System.out.print((ws[1]).charAt(i));
        }

        System.out.print(" ||| ");

        System.out.print(charAlignments.get(wd + "\\|" + contextSize));
    }