The 's' replaces one particular Place match at any given time although the 's+' replaces The full Place sequence simultaneously with the second parameter.On the other hand x.replaceAll("s+", ""); will be much more effective method of trimming spaces (if string might have various contiguous Areas) mainly because of probably considerably less no of r