---
title: "gsql_ltrim()"
component: "gsql-ref"
version: "4.1"
module: "ddl-and-loading"
html_url: "/gsql-ref/4.1/ddl-and-loading/functions/token/gsql_ltrim"
canonical_url: "https://www.tigergraph.com/docs/gsql-ref/4.1/ddl-and-loading/functions/token/gsql_ltrim"
markdown_url: "https://www.tigergraph.com/docs/gsql-ref/4.1/ddl-and-loading/functions/token/gsql_ltrim.md"
---

[View as HTML](https://www.tigergraph.com/docs/gsql-ref/4.1/ddl-and-loading/functions/token/gsql_ltrim)

# gsql_ltrim()

Trims leading whitespace from the input string.

## Syntax

`gsql_ltrim(in_string)`

## Parameters

in\_string

Required. The string whose leading whitespace to trim.

## Return type

`STRING`

## Example

gsql_trim("  hello world  ") -> "hello world  "
