The 's' replaces one House match at a time however the 's+' replaces The complete Room sequence at the same time with the 2nd parameter. On the other hand x.replaceAll("\s+", ""); is going to be a lot more effective technique for trimming spaces (if string might have a number of https://mantra-mushroom-chocolate08641.blogproducer.com/38065942/everything-about-mantra-euphoria-gummie