About mantra mushroom chocolate
The 's' replaces one Area match at a time however the 's+' replaces The entire Room sequence simultaneously with the second parameter.Even so x.replaceAll("s+", ""); are going to be much more effective means of trimming spaces (if string can have multiple contiguous Areas) for the reason that of probably fewer no of replacements thanks the to prove