The 2-Minute Rule for mantra mushroom chocolate
The 's' replaces one Area match at a time though the 's+' replaces the whole Area 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 probably a lot less no of replacements owing the to