The 's' replaces one House match at a time but the 's+' replaces The full Area sequence at once with the next parameter. Nevertheless x.replaceAll("\s+", ""); will probably be more successful means of trimming Areas (if string can have multiple contiguous spaces) because of doubtless much less no of replacements https://remingtonwodrg.blog-ezine.com/31435977/mantra-euphoria-gummie-options