Eliminar el texto seleccionado del valor de cadena Android Java

//java,remove selected value from string value,2021/09/23

String strValue="Text what you want remove hello world";
strValue.replace("Text what you want remove","text to replace");
System.out.println(strValue);
	//after replace strValue = "text to replace hello world"
RIPCode