The 's' replaces just one Room match at a time although the 's+' replaces The entire House sequence directly with the second parameter. Having said that x.replaceAll("\s+", ""); are going to be far more productive way of trimming spaces (if string might have a number of contiguous Areas) due to https://mantramushroomchocolateba43097.blogproducer.com/38040943/mantra-euphoria-gummie-secrets