[discrete] [[esql-trim]] === `TRIM` *Syntax* [.text-center] image::esql/functions/signature/trim.svg[Embedded,opts=inline] *Parameters* `str`:: String expression. If `null`, the function returns `null`. *Description* Removes leading and trailing whitespaces from strings. *Supported types* include::types/trim.asciidoc[] *Example* [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] |===