trim

public function trim(s:String):String
Removes whitespace from the beginning and end of a string.

Params

Name Type Description
s String String to remove whitespace from.

Returns

String New string with removed whitespace.