ty Examples</a></div><hr><div class="binding"><span id="string/trim" class="binding-sym">string/trim</span> <span class="binding-type">cfunction</span> <span class="binding-type"><a href="https://github.com/janet-lang/janet/blob/e9c6678/src/core/string.c#L605">source</a></span> <pre class="binding-text">(string/trim str &amp;opt set)

Trim leading and trailing whitespace from a byte sequence. If the argument `set` is provided, consider only characters in `set` to be whitespace.</pre><div class="example-titl