The 's' replaces one particular Area match at any given time although the 's+' replaces The entire House sequence directly with the second parameter. On the other hand x.replaceAll("\s+", ""); is going to be a lot more effective technique for trimming spaces (if string might have several contiguous Areas) due https://mantra-mushroom-gummies64107.bloggin-ads.com/54659103/s-an-overview