public static String deleteXmlWhitespace(String string) {
        return XML_WHITESPACE.matcher(string).replaceAll("");
    }
@Test
    public void testeDeleteXmlWhitespace() {
        String noWhitespace = StringUtils.deleteXmlWhitespace(" foo\nbar ");
        assertEquals("foobar", noWhitespace);

        noWhitespace = StringUtils.deleteXmlWhitespace(" \tbaz\rbarz\t ");
        assertEquals("bazbarz", noWhitespace);

        noWhitespace = StringUtils.deleteXmlWhitespace("SNAFU");
        assertEquals("SNAFU", noWhitespace);
    }