The 's' replaces just one Room match at any given time however the 's+' replaces The complete space sequence directly with the 2nd parameter. Nevertheless x.replaceAll("\s+", ""); are going to be extra productive means of trimming spaces (if string may have a number of contiguous Areas) because of probably much https://martinytpll.blogminds.com/mantra-mushroom-chocolate-bars-no-further-a-mystery-28923475