The 's' replaces one House match at a time but the 's+' replaces The full Area sequence without delay with the next parameter. Nevertheless x.replaceAll("\s+", ""); will probably be more successful means of trimming Areas (if string can have various contiguous spaces) for the reason that of doubtless much less https://mantra-mushroom-chocolate97531.snack-blog.com/31277218/little-known-facts-about-mantra-mushroom-chocolate