The 's' replaces 1 space match at any given time even so the 's+' replaces the whole Place sequence simultaneously with the second parameter. Having said that x.replaceAll("\s+", ""); are going to be additional productive method of trimming Areas (if string can have many contiguous spaces) for the reason that https://mantra-chocolate-bars21863.thelateblog.com/31871528/fascination-about-mantra-euphoria-gummie