String str = new String("1H4ello1 World2"); String newStr = CharSetUtils.delete(str, "1234567890"); System.out.println(newStr); // prints Hello World