# trimtext proc

Source: https://ref.dm-lang.org/proc/trimtext
Added in BYOND 515.

### Format
> `trimtext(Text)`

### Returns
> Text with whitespace trimmed from both ends

### Args
> Text: The text string to trim.

Trims whitespace from both ends of a text string.

All [Unicode](https://ref.dm-lang.org/notes/Unicode.md) whitespace characters are counted, whether they can cause a break or not.

### See also
> [copytext proc](https://ref.dm-lang.org/proc/copytext.md)
