The 's' replaces 1 space match at a time however the 's+' replaces The complete Room sequence at the same time with the 2nd parameter. However x.replaceAll("\s+", ""); will be additional productive method of trimming Areas (if string can have many contiguous spaces) for the reason that of doubtless less https://mantra-chocolate-bars09737.ziblogs.com/31426758/new-step-by-step-map-for-s