The 's' replaces a single space match at any given time even so the 's+' replaces The entire House sequence directly with the second parameter. However x.replaceAll("\s+", ""); are going to be additional productive method of trimming Areas (if string can have many contiguous spaces) for the reason that of https://raymondundsi.blogsuperapp.com/31876565/the-single-best-strategy-to-use-for-s