public static Cons formatStringMessageArguments(Cons messagearguments, boolean trailingeolP) {
    { Cons formattedarguments = Cons.formatMessageArguments(messagearguments, trailingeolP);

      { ConsIterator it = formattedarguments.allocateIterator();

        while (it.nextP()) {
          { Surrogate testValue000 = Stella_Object.safePrimaryType(it.value);

            if (Surrogate.subtypeOfStringP(testValue000)) {
            }
            else if (Surrogate.subtypeOfP(testValue000, Stella.SGT_STELLA_LITERAL_WRAPPER)) {
              it.valueSetter(StringWrapper.wrapString(Native.stringify(it.value)));
            }
            else {
              if (it.value == Stella.SYM_STELLA_EOL) {
                it.valueSetter(StringWrapper.wrapString(Stella.EOL_STRING));
              }
              else {
                it.valueSetter(Cons.list$(Cons.cons(Stella.SYM_STELLA_STRINGIFY, Cons.cons(it.value, Cons.cons(Stella.NIL, Stella.NIL)))));
              }
            }
          }
        }
      }
      return (formattedarguments);
    }
  }