New Step by Step Map For s
The 's' replaces 1 Area match at a time however the 's+' replaces The entire Area sequence at the same time with the second parameter.Nevertheless x.replaceAll("s+", ""); is going to be far more successful strategy for trimming spaces (if string can have numerous contiguous Areas) because of probably less no of replacements thanks the to proven fac