LocationPronunciation implements TextModification { public String modify(String input) { Matcher m = _pattern.matcher(input); if (m.matches()) { String rest = m.group(1); String zip = m.group(2); StringBuilder b = new StringBuilder(); for (int i = 0; i < zip.length(); i++) { if (i > 0) b.append(" "); b.append(zip.charAt(i)); } input = rest + b.toString(); } if (_additionalPronunciation != null) input = _additionalPronunciation.modify(input); return input; }  void setAdditionalPronunciation(
      TextModification additionalPronunciation); String modify(String input);  }
@Test public void test() { LocationPronunciation pro = new LocationPronunciation(); String result = pro.modify("seattle, wa 98105"); assertEquals("seattle, wa 9 8 1 0 5", result); }