The 's' replaces one space match at a time nevertheless the 's+' replaces the whole Place sequence simultaneously with the 2nd parameter. Nonetheless x.replaceAll("\s+", ""); will probably be much more efficient strategy for trimming spaces (if string may have several contiguous Areas) due to the fact of potentially fewer no https://mantra-nootropic-bar43186.popup-blog.com/30719119/about-s