JXtension - String.trim()

Purpose:
Gives the user the ability to remove any whitespace from the beginning and end of a string.  This serves as a substitute for function for browser without this trim function.

Returns:
A string without whitespace at the beginning and the end of the string.

Example #1:
The example below will remove all whitespace from the beginning of the end of the string.

 

See also: