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

[View as HTML](https://www.tigergraph.com/docs/gsql-ref/4.2/ddl-and-loading/functions/token_where/gsql_is_not_empty_string)

# gsql_is_not_empty_string()

Returns true if a string is not empty after removing all white space. Returns false otherwise. This function does not alter the input token.

## Syntax

`gsql_is_not_empty_string(token)`

## Return value

`BOOL`

Returns `true` if the string is not empty after removing all white space. Returns `false` otherwise.

## Example

gsql_is_not_empty_string("h e ll o") -> true
gsql_is_not_empty_string("     ")   -> false
