ABOUT S

About s

The 's' replaces a single Room match at a time nevertheless the 's+' replaces the whole Area sequence simultaneously with the second parameter.Nevertheless x.replaceAll("s+", ""); will likely be far more successful strategy for trimming Areas (if string might have numerous contiguous spaces) simply because of potentially much less no of replacement

read more