That regex "\\s*,\\s*"
means:
\s*
any number of whitespace characters- a comma
\s*
any number of whitespace characters
which will split on commas and consume any spaces either side
That regex "\\s*,\\s*"
means:
\s*
any number of whitespace characters\s*
any number of whitespace characterswhich will split on commas and consume any spaces either side