Wrap the string at the specified width by inserting newlines.
Example:
assert (Strings.wrap ("abcdef", 3) == "abc\ndef");
| s |
the string. |
| width |
the maximum line width. |
|
wrapped string. |