The 's' replaces one Place match at a time but the 's+' replaces The full Area sequence at once with the next parameter. Having said that x.replaceAll("\s+", ""); are going to be far more effective technique for trimming spaces (if string might have a number of contiguous Areas) simply because https://mantra-nootropic-bar42085.blog-ezine.com/31459878/not-known-facts-about-mantra-mushroom-chocolate