"; long start = System.currentTimeMillis(); System.out.println(start); Set result = new HashSet(); for (int i = 0; i < 50000; i ) { String temp = EmojiFilterUtil.getFilteredStr(str, ";"); String[] tempStr = temp.split(";"); for (String key : tempStr) { result.add(key); } } System.out.println(System.currentTimeMillis() - start); System.out.println(result.size()); System.out.println(result.toString()); String[] a = new String[result.size()]; result.toArray(a); for (String s : a) { str = StringUtils.replace(str, s, ""); } System.out.println(str); }}