The 's' replaces 1 space match at any given time though the 's+' replaces The complete House sequence at the same time with the 2nd parameter. Nevertheless x.replaceAll("\s+", ""); will be a lot more efficient technique for trimming spaces (if string might have a number of contiguous spaces) mainly because https://mantra-nootropic-bar42085.azzablog.com/31490088/a-review-of-mantra-mushroom-gummies