The 's' replaces 1 space match at any given time even so the 's+' replaces the whole House sequence simultaneously with the second parameter. Nevertheless x.replaceAll("\s+", ""); will probably be more economical strategy for trimming spaces (if string may have numerous contiguous Areas) since of probably considerably less no of https://alexiseulao.pointblog.net/new-step-by-step-map-for-s-73698505