The best Side of s
The 's' replaces just one House match at any given time but the 's+' replaces The full House sequence without delay with the 2nd parameter.On the other hand x.replaceAll("s+", ""); will be much more effective method of trimming spaces (if string might have multiple contiguous Areas) because of probably much less no of replacements due the to proven