The 's' replaces just one Room match at any given time though the 's+' replaces The entire space sequence directly with the second parameter. However x.replaceAll("\s+", ""); is going to be far more effective way of trimming spaces (if string might have a number of contiguous Areas) mainly because of https://mantrachocolatebars90738.articlesblogger.com/54129143/mantra-mushroom-gummies-no-further-a-mystery