public PatternStringGenerator(HashMap params) {
        if (params.containsKey("pattern")) {
            pattern = ((String)params.get("pattern")).toCharArray();
            patternLength = pattern.length;
        }

    }