The 's' replaces just one Room match at a time although the 's+' replaces The entire space sequence at once with the next parameter. Even so x.replaceAll("\s+", ""); is going to be much more efficient strategy for trimming spaces (if string might have several contiguous Areas) simply because of doubtless https://mantra-chocolate-bars55208.suomiblog.com/considerations-to-know-about-s-47064859