The 's' replaces a single space match at any given time even so the 's+' replaces the whole Place sequence simultaneously with the 2nd parameter. Even so x.replaceAll("\s+", ""); is going to be additional productive way of trimming Areas (if string can have many contiguous spaces) for the reason that https://mantra-mushroom-chocolate64218.bloguerosa.com/30567680/everything-about-mantra-euphoria-gummie