java string remove escape characters code example
Example 1: how to remove all whitespace from string java
st = st.replaceAll("\\s+","")
Example 2: java string remove character
String str = "abcdDCBA123";
String strNew = str.replace("a", ""); // strNew is 'bcdDCBA123'