code: @Nullable
      public static String nullableString(@Nullable String str) {
          return str == null || str.isEmpty() ? null : str;
      }
docs: Coverts nullable string to nullable string and if string was null or empty
  and returns string as is otherwise.
  
  @param str string to convert, can be null.
  @return nullable string, can not be empty.