> For the complete documentation index, see [llms.txt](https://docs.tabula.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tabula.io/data-transformation/formulas/string-functions/trim.md).

# Trim

Trims a string value with the specified character from the left, right, or both sides

```mathematica
Trim("Cihacago city.", ".", SideOption.RIGHT) → "Chicago city"
Trim("0I'm good at analytics0", "0", SideOption.BOTH) → "I'm good at analytics"
```

#### Inputs

`Trim(string, [character], [sideOption])`

* `string` - A text value
* `[character]` - A text to trim
* `[sideOption]` - LEFT, RIGHT, or BOTH side option, ex. SideOption.BOTH
