code: public static List<String> splitNicelyWithPattern( String toSplit, String patternSeparator ) {
  
  		if( patternSeparator == null || patternSeparator.isEmpty())
  			throw new IllegalArgumentException( "The separator cannot be null or the empty string." );
  
  		List<String> result = new ArrayList<> ();
  		if( ! Utils.isEmptyOrWhitespaces( toSplit )) {
  			for( String s : toSplit.split( patternSeparator ))
  				result.add( s .trim());
  		}
  
  		return result;
  	}
docs: Splits a string and formats the result.
  @param toSplit the string to split (can be null)
  @param patternSeparator the separator pattern (cannot be null or the empty string)
  @return a list of items (never null), with every item being trimmed