public static String[] toCommaSeparatedArray(String str) throws IOException {
  return str.split("\\s*,\\s*");
}

public static String [ ] toCommaSeparatedArray ( String str ) throws IOException { return str . split ( "\\s*,\\s*" ) ; }
returns a value as a string array . the values are separated by commas with optional white space .
