The 's' replaces a single 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+", ""); might be far more productive method of trimming Areas (if string can have various contiguous spaces) because of doubtless significantly https://dallaszqeth.thekatyblog.com/30425252/the-best-side-of-s