The 's' replaces one particular Area match at any given time although the 's+' replaces The entire House sequence directly with the 2nd parameter. Having said that x.replaceAll("\s+", ""); might be far more effective technique for trimming spaces (if string might have a number of contiguous Areas) due to the https://mrmushiesmushroomchocolat09642.eedblog.com/31460856/s-an-overview