The 's' replaces a person Place match at a time but the 's+' replaces The full Area sequence at once with the next parameter. Even so x.replaceAll("\s+", ""); will likely be much more efficient strategy for trimming spaces (if string may have numerous contiguous Areas) since of probably considerably less https://mantra-hero-bar65208.izrablog.com/31897879/the-basic-principles-of-s