The 's' replaces one House match at a time however the 's+' replaces The complete Room sequence at once with the next parameter. Having said that x.replaceAll("\s+", ""); might be far more effective technique for trimming spaces (if string might have several contiguous Areas) due to the fact of potentially https://landendwncq.bloggosite.com/38000540/everything-about-s