The 's' replaces a single space match at any given time nevertheless the 's+' replaces the whole Place sequence at the same time with the 2nd parameter. Having said that x.replaceAll("\s+", ""); are going to be far more effective way of trimming spaces (if string might have a number of https://mantra-hero-bar08642.goabroadblog.com/30659583/about-mantra-euphoria-gummie