The 's' replaces one particular Area match at any given time although the 's+' replaces The entire House sequence directly with the second parameter. Having said that x.replaceAll("\s+", ""); might be far more effective way of trimming spaces (if string might have a number of contiguous Areas) mainly because of https://andrevoeti.bloggadores.com/30752006/not-known-details-about-mantra-mushroom-chocolate-bars