code: public static String[] trimAll(final String[] strings) {
          if (null == strings) {
              return null;
          }
  
          return Arrays.stream(strings).map(StringUtils::trim).toArray(size -> new String[size]);
      }
docs: Trims every string in the specified strings array.
  
  @param strings the specified strings array, returns {@code null} if the
  specified strings is {@code null}
  @return a trimmed strings array