s - An Overview
The 's' replaces just one House match at any given time though the 's+' replaces the whole House sequence at once with the 2nd parameter.Even so x.replaceAll("s+", ""); are going to be more economical technique for trimming Areas (if string may have several contiguous spaces) since of potentially significantly less no of replacements due the to ind