nd4j-common/src/main/java/org/nd4j/util/StringUtils.java
public static Collection<String> getTrimmedStringCollection(String str){
        Set<String> set = new LinkedHashSet<String>(
                Arrays.asList(getTrimmedStrings(str)));
        set.remove("");
        return set;
    }
public static Collection<String> getTrimmedStringCollection(String str){
        Set<String> set = new LinkedHashSet<String>(
                Arrays.asList(getTrimmedStrings(str)));
        set.remove("");
        return set;
    }
Splits a comma separated value <code>String</code>, trimming leading and
trailing whitespace on each value. Duplicate and empty values are removed.

@param str a comma separated <String> with values, may be null
@return a <code>Collection</code> of <code>String</code> values, empty
Collection if null String input