The 's' replaces a single Area match at any given time even so the 's+' replaces The entire House sequence simultaneously with the second parameter. Even so x.replaceAll("\s+", ""); will likely be much more efficient technique for trimming spaces (if string might have several contiguous Areas) since of probably a https://mantra-hero-bar75960.post-blogs.com/52549481/new-step-by-step-map-for-s