The 's' replaces one space match at a time however the 's+' replaces The complete Room sequence at the same time with the 2nd parameter. Even so x.replaceAll("\s+", ""); is going to be a lot more efficient technique for trimming spaces (if string might have several contiguous Areas) due to https://franciscoxocsh.blog2learn.com/79293924/about-mantra-euphoria-gummie