refactor: simplify std.string.format.

* lib/std/string.lua (format): Simplify.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>