The 's' replaces one particular Area match at any given time although the 's+' replaces The entire space sequence directly with the second parameter. Even so x.replaceAll("\s+", ""); is going to be much more efficient strategy for trimming spaces (if string may have several contiguous Areas) since of probably a https://mantra-chocolate-bars31975.review-blogger.com/53438072/the-best-side-of-mantra-mushroom-chocolate-bars