code: public void apply(UnaryOperator<String> function) {
          this.filename = function.apply(this.filename);
          if (path != null && !path.isEmpty())
              this.path = function.apply(this.path);
      }
docs: Apply the function to all string
  @param function