The 's' replaces a single Area match at any given time even so the 's+' replaces the whole House sequence simultaneously with the 2nd parameter. Even so x.replaceAll("\s+", ""); will likely be much more efficient strategy for trimming spaces (if string may have numerous contiguous Areas) because of doubtless much https://mantrachocolatebars20863.ivasdesign.com/53149409/mantra-mushroom-chocolate-bars-no-further-a-mystery