# Remove leading and trailing whitespace

* trim
* trim_end
* trim_start

* Read more about [trim](https://doc.rust-lang.org/std/string/struct.String.html#method.trim) and the related functions.

{% embed include file="src/examples/strings/trim/src/main.rs" %}
{% embed include file="src/examples/strings/trim/out.out" %}


