The 's' replaces one particular Area match at any given time even so the 's+' replaces The entire House sequence directly with the second parameter. Even so x.replaceAll("\s+", ""); will likely be much more economical strategy for trimming spaces (if string may have numerous contiguous Areas) simply because of probably https://mantra-hero-bar19742.get-blogging.com/31836483/everything-about-s