strtrim

strtrim(s) removes white spaces from the beginning and the end of string s.

Examples

> s = '  abc  '

[s:  abc  ]

> strtrim(s)

[ans:abc]

See also

deblank | isspace