code: public static boolean isBlank(final String string) {
          if (string == null || string.isEmpty())
              return true;
  
          return string.chars().allMatch(Character::isWhitespace);
      }
docs: Checks if the given String is {@code null}, empty or consists solely of whitespaces.
  
  @param string The String to check
  @return {@code true} if the String is {@code null}, empty or whitespace