refactor: simplify std.string.assert.

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

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