code: public static String[] removeEmptyStrings(String[] strings) {
          if (Objects.isNull(strings)) {
              throw new IllegalArgumentException("Input array should not be null");
          }
          return Arrays.stream(strings).filter(str -> str != null && !str.trim().isEmpty()).toArray(String[]::new);
      }
docs: Remove empty Strings from string array
  
  @param strings Array of String to be cleaned
  @return Array of String without empty Strings