Everything about s
The 's' replaces 1 Area match at a time nevertheless the 's+' replaces The full Place sequence directly with the next parameter.Nonetheless x.replaceAll("s+", ""); might be additional economical technique for trimming Areas (if string may have a number of contiguous spaces) due to the fact of doubtless considerably less no of replacements because o