class HerdStringHelper {

    public Set<String> splitAndTrim(String string, String delimiter)
    {
        String[] tokens = string.split(delimiter);
        Set<String> resultSet = new HashSet<>();
        for (String token : tokens)
        {
            if (StringUtils.isNotBlank(token))
            {
                resultSet.add(token.trim());
            }
        }
        return resultSet;
    }

}