code: public static String[] trim(final String... aStringArray) {
          final ArrayList<String> list = new ArrayList<>();
  
          for (final String string : aStringArray) {
              if (string != null && !"".equals(string)) {
                  list.add(string);
              }
          }
  
          return list.toArray(new String[0]);
      }
docs: Removes empty and null strings from a string array.
  
  @param aStringArray A varargs that may contain empty or null strings
  @return A string array without empty or null strings