The 's' replaces 1 space match at any given time nevertheless the 's+' replaces the whole Area sequence directly with the second parameter. Even so x.replaceAll("\s+", ""); is going to be much more efficient technique for trimming spaces (if string may have several contiguous spaces) because of doubtless significantly less https://mantra-bars-euphoria-bar98631.humor-blog.com/30575591/mantra-euphoria-gummie-options