text: public void add(String match, String replacement) {if (match.length() == 0 ){throw new IllegalArgumentException("cannot match the empty string");}if (pendingPairs.containsKey(match)) {throw new IllegalArgumentException("match \"" + match + "\" was already added");}pendingPairs.put(match, replacement);}