The 's' replaces one Area match at a time though the 's+' replaces The complete Area sequence directly with the second parameter. Even so x.replaceAll("\s+", ""); is going to be more economical technique for trimming spaces (if string can have various contiguous Areas) due to the fact of potentially much https://reidyoesh.blogdal.com/31748161/the-2-minute-rule-for-mantra-mushroom-chocolate