trim

Returns its string argument without leading or trailing whitespace.

Example

trim(" Hello Cleveland ")

This example returns the string “Hello Cleveland”.

Syntax

trim(string str)
  • str: string

    Returns

    string

Description

trim searches for any white space preceding non-white space characters in its string argument. It removes the preceding white space characters and returns the result.

© Incorta, Inc. All Rights Reserved.