Try it -
line cropping string? chars?
Returns a value equal to the string, except that any leading or trailing characters from the set specified by characters are deleted. If no characters are specified, the space is removed (spaces, tabs, newlines, and carriage returns).
Source of the original: - http://wiki.tcl.tk/10174
source share