Syntax
trim(string,[cutset])
Description
trim() returns a string with all leading and trailing characters contained in cutset removed. If no cutset is defined, then all leading and trailing white spaces will be removed.
Example
Text=" Hello World!!! " println("->", Text, "<-") Text=trim(Text) println("->", Text, "<-") Text=trim(Text, "H!") println("->", Text, "<-") -> Hello World!!! <- ->Hello World!!!<- ->ello World<-