String str = new String("Hello World"); String newStr = CharSetUtils.delete(str, "abcde"); System.out.println(newStr); // prints Hllo Worl