I have a string like this:
mysz = \"name=john age=13 year=2001\";
I want to remove the whitespaces in the string. I tried trim()
There are others space char too exists in strings.. So space char we may need to replace from strings.
Ex: NO-BREAK SPACE, THREE-PER-EM SPACE, PUNCTUATION SPACE
Here is the list of space char http://jkorpela.fi/chars/spaces.html
So we need to modify
\u2004 us for THREE-PER-EM SPACE
s.replaceAll("[\u0020\u2004]","")