code: private String[] parseStringArray(final String list) {
  		StringTokenizer tokenizer = new StringTokenizer(list, ",", false);
  		int length = tokenizer.countTokens();
  		String[] arr = new String[length];
  
  		for (int i = 0; tokenizer.hasMoreElements(); i++) {
  			arr[i] = cleanSpaces(tokenizer.nextToken());
  		}
  
  		return arr;
  	}
docs: Splits the given comma-delimited string into an an array. Leading/trailing spaces in list items will be trimmed.
  
  @param list the String to split.
  @return the split version of the list.