The 's' replaces a person Place match at a time but the 's+' replaces The complete Room sequence at once with the next parameter. Even so x.replaceAll("\s+", ""); is going to be a lot more efficient strategy for trimming spaces (if string might have several contiguous Areas) due to the https://trehouse-mushroom-chocola43197.tribunablog.com/new-step-by-step-map-for-s-45788066