The 's' replaces a single space match at any given time nevertheless the 's+' replaces the whole Place sequence at the same time with the 2nd parameter. On the other hand x.replaceAll("\s+", ""); might be far more successful means of trimming Areas (if string may have multiple contiguous Areas) simply https://mantra-hero-bar19742.get-blogging.com/31836483/everything-about-s