The 's' replaces a single Area match at any given time although the 's+' replaces The entire space sequence directly with the second parameter. Even so x.replaceAll("\s+", ""); is going to be a lot more effective way of trimming spaces (if string might have a number of contiguous Areas) mainly https://edgarsizpd.tusblogos.com/31383218/mantra-mushroom-chocolate-an-overview