public static String replace(String str, String searchStr, String replaceStr) {
        return Pattern
                .compile(searchStr, Pattern.LITERAL)
                .matcher(str)
                .replaceAll(Matcher.quoteReplacement(replaceStr));
    }
@Test
    public void replace() {
        String url = "http://localhost:8088/hippo4j_manager?";
        String replace = StringUtil.replace(url, "/hippo4j_manager?", "?");
        Assert.assertEquals(replace, "http://localhost:8088?");
    }