code: public static String[] splitContentValues(String[] strings) {
          final Set<String> result = new LinkedHashSet<String>();
  
          for (String string : strings) {
              if (string.isEmpty())
                  continue;
              String[] splitted = string.trim().split(",");
              for (String string2 : splitted) {
                  result.add(string2);
              }
          }
          return result.toArray(new String[result.size()]);
      }
docs: Splits the provided array of strings into an array, using comma as the separator.
  Also removes leading and trailing whitespace and omits empty strings from the results.
  
  @param strings is the provided array of strings
  @return the resulted array of strings