The 's' replaces a single Area match at any given time even so the 's+' replaces the whole House sequence simultaneously with the 2nd parameter. Even so x.replaceAll("\s+", ""); is going to be much more effective way of trimming spaces (if string might have a number of contiguous Areas) mainly https://mantraeuphoriagummies89742.uzblog.net/the-definitive-guide-to-mantra-euphoria-gummie-45381651