The 's' replaces 1 space match at a time nevertheless the 's+' replaces the whole Place sequence at the same time with the 2nd parameter. Nonetheless x.replaceAll("\s+", ""); will likely be more economical strategy for trimming spaces (if string may have multiple contiguous spaces) simply because of probably a lot https://mantraherobar08752.blogdal.com/31772960/not-known-factual-statements-about-mantra-mushroom-chocolate