The 's' replaces just one Place match at a time though the 's+' replaces The full space sequence without delay with the next parameter. Nonetheless x.replaceAll("\s+", ""); will probably be more efficient way of trimming spaces (if string might have a number of contiguous Areas) mainly because of potentially less https://mantra-mushroom-chocolate32086.myparisblog.com/31847519/the-best-side-of-s