How can I remove a substring from a given String? September 24, 2022 by Tarik You could easily use String.replace(): String helloWorld = "Hello World!"; String hellWrld = helloWorld.replace("o","");