SWiSH Player Support
SWF5 or later - Supported Internally
Syntax
myString.trim()
Arguments
none
Returns
The specified string with any whitespace removed from the beginning and end of the string.
Description
Method: Returns the specified string with all whitespace (blank spaces) removed from the beginning and the end of the string.
Sample
onLoad () {
str = " Hello World ";
trace(str.trim()); // returns "Hello World"
}