The Basic Principles Of s
The 's' replaces a single Room match at a time even so the 's+' replaces The full Room sequence simultaneously with the next parameter.However x.replaceAll("s+", ""); will likely be far more successful strategy for trimming spaces (if string may have several contiguous spaces) simply because of potentially much less no of replacements due the to un