The s Diaries
The 's' replaces 1 Room match at a time even so the 's+' replaces The full Room sequence simultaneously with the next parameter.However x.replaceAll("s+", ""); will probably be a lot more productive means of trimming spaces (if string can have multiple contiguous Areas) for the reason that of probably fewer no of replacements owing the to fact that