inding"><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/e1c4fc2/src/boot/boot.janet#L577">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><a href="https://janetdocs.org/string/trim">Community Examples</