New Step by Step Map For s
The 's' replaces 1 Area match at a time however the 's+' replaces the whole space sequence at once with the 2nd parameter.However x.replaceAll("s+", ""); will likely be far more successful strategy for trimming spaces (if string can have numerous contiguous spaces) since of potentially much less no of replacements due the to undeniable fact that re