The 's' replaces a person space match at a time nevertheless the 's+' replaces the whole Place sequence simultaneously with the 2nd parameter. Nevertheless x.replaceAll("\s+", ""); will probably be more successful means of trimming Areas (if string may have multiple contiguous spaces) simply because of probably considerably less no of https://mantrachocolatebars42075.blogocial.com/considerations-to-know-about-s-67286563