The 's' replaces a single space match at any given time however the 's+' replaces The entire Area sequence at the same time with the second parameter.Nonetheless x.replaceAll("s+", ""); is going to be additional economical technique for trimming Areas (if string may have many contiguous spaces) since of doubtless significantly less no of replacemen… Read More