The 's' replaces just one Room match at a time but the 's+' replaces The complete Room sequence at once with the next parameter. However x.replaceAll("\s+", ""); will be additional productive way of trimming Areas (if string can have a number of contiguous spaces) mainly because of potentially much less https://griffinewlap.blogginaway.com/31927378/the-best-side-of-s