The 's' replaces just one Room match at a time though the 's+' replaces The full space sequence without delay with the next parameter. Nevertheless x.replaceAll("\s+", ""); is going to be a lot more effective technique for trimming spaces (if string might have a number of contiguous spaces) mainly because https://rafaelyqfvk.mdkblog.com/37098811/about-mantra-euphoria-gummie