String str = new String("What's Up ?"); String newStr = CharSetUtils.delete(str, "'?"); System.out.println(newStr); // prints Whats Up