[discrete]
[[esql-trim]]
=== `TRIM`
[.text-center]
image::esql/functions/signature/trim.svg[Embedded,opts=inline]

Removes leading and trailing whitespaces from strings.

[source.merge.styled,esql]
----
include::{esql-specs}/string.csv-spec[tag=trim]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/string.csv-spec[tag=trim-result]
|===

Supported types:

include::types/trim.asciidoc[]
