ColorUtil { public static String getStripped(String in) { for (final char key : coloredMapping.keySet()) { in = in.replace("&" + key, ""); } return in; }  static String getReplaced(String in); static String getStripped(String in);  }
@Test void getStripped() { final String coloredString = "&9Hello &cWorld!"; Assertions.assertEquals("Hello World!", ColorUtil.getStripped(coloredString)); }