tumblr tracker

Trim

Library Reference ›› String ››
Parent Previous Next

String.Trim


Namespace: String


Removes any blanks (leading or trailing spaces) at the beginning or at the end of the string.


retval = String.Trim(Input)


Parameters:

- Input; string constant or variable or function returning a string; the input string to work with


Returns:

The transformed string containing no blanks at beginning or at end; string value.


Example


$val = String.Trim("  John Doe   ");


After execution the $val variable will contain John Doe.