java replace whitespace
st = st.replaceAll("\\s+","")
Source: stackoverflow.com
java replace whitespace
st = st.replaceAll("\\s+","")
Source: nullorempty.org
java string replaceall for space
`\\s` # Matches whitespace characters. + # One or more
Source: mkyong.com