I am wondering what this line of code does to a url that is contained in a String called surl?
String[] stokens = surl.split(\"\\\\s*,\\\\s*\");
That regex "\\s*,\\s*" means:
"\\s*,\\s*"
\s*
which will split on commas and consume any spaces either side