code show as below:
Function trim (s) {
VAR M = S.MATCH (/ ^ / s * (/ s / s ) *) / s * $ /);
RETURN (M == NULL)? "": M [1];
}