The 's' replaces one particular Room match at any given time nevertheless the 's+' replaces the whole Place sequence at the same time with the 2nd parameter. Having said that x.replaceAll("\s+", ""); might be far more effective technique for trimming spaces (if string might have several contiguous Areas) due to https://mantranootropicbar54197.59bloggers.com/31761789/mantra-mushroom-chocolate-an-overview