public static void assureCorrectness(int iterations, StringSource src, StripAlgorithm... alg) throws Exception {
        String answer;
        System.out.print("Assuring that all algorithms are correct... ");
        for (int i = 0; i < iterations; i++) {
            String question = src.nextString();
            answer = alg[0].strip(question);
            for (int j = 1; j < alg.length; j++) {
                if (!answer.equals(alg[j].strip(question))) {
                    throw new RuntimeException("Incorrect algorithm " + alg[j].getClass().getSimpleName() + " on sample string \"" + question + "\"");
                }
            }
        }
        System.out.println("OK");
    }