The mantra euphoria gummie Diaries
The 's' replaces one Area match at a time however the 's+' replaces the whole space sequence at the same time with the second parameter.Having said that x.replaceAll("s+", ""); will be much more productive means of trimming spaces (if string can have multiple contiguous Areas) for the reason that of potentially much less no of replacements due the