I'm trying to remove white space in a String, adressString (see below).
To do so, I'm using the folowing piece of code :
adressString.replaceAll("\r","");
However, this does not work : I'm stil having this whitespace (see below) :
Solution :
I needed to declare another String :
String adressWithoutCarriageReturn = adressString.replaceAll("\r", "");