About s
The 's' replaces one particular Place match at any given time though the 's+' replaces The complete House sequence without delay with the 2nd parameter.
However x.replaceAll("s+", ""); will likely be a lot more successful strategy for trimming spaces (if string