The 's' replaces 1 space match at any given time nevertheless the 's+' replaces the whole Place sequence simultaneously with the 2nd parameter. Even so x.replaceAll("\s+", ""); might be additional productive way of trimming Areas (if string can have many contiguous Areas) mainly because of potentially less no of replacements https://travisyshwc.blogrelation.com/37447742/facts-about-mantra-euphoria-gummie-revealed