The 's' replaces just one Room match at any given time although the 's+' replaces The entire space sequence directly with the second parameter. Even so x.replaceAll("\s+", ""); will likely be much more efficient strategy for trimming spaces (if string may have numerous contiguous Areas) simply because of probably considerably https://mantra-mushroom-chocolate97531.snack-blog.com/31277218/little-known-facts-about-mantra-mushroom-chocolate