The 's' replaces one particular House match at any given time nevertheless the 's+' replaces the whole Place sequence simultaneously with the 2nd parameter. Having said that x.replaceAll("\s+", ""); might be far more effective strategy for trimming spaces (if string can have many contiguous spaces) because of doubtless significantly less https://mantramushroomchocolateba19742.tblogz.com/about-mantra-mushroom-chocolate-45317118