The 's' replaces just one Room match at any given time although the 's+' replaces The entire House sequence directly with the second parameter. Nevertheless x.replaceAll("\s+", ""); will be extra successful method of trimming Areas (if string can have many contiguous spaces) mainly because of potentially less no of replacements https://rafaelyqfvk.mdkblog.com/37098811/about-mantra-euphoria-gummie