The 's' replaces just one Room match at any given time although the 's+' replaces The entire House sequence directly with the second parameter. Even so x.replaceAll("\s+", ""); is going to be much more efficient strategy for trimming spaces (if string may have numerous contiguous Areas) since of probably significantly https://mantra-mushroom-gummies64207.ssnblog.com/30661607/s-an-overview