Name

stripblanks — strips leading and trailing blanks (and tabs) of strings

Calling Sequence

txt=stripblanks(txt[,tabs])

Parameters

txt

A character string or matrix of character strings

tabs

if TRUE then tabs are also stripped (default value is FALSE)

Description

stripblanks strips leading and trailing blanks (and tabs) of strings

Examples

 
a='  123   ';
'!'+a+'!'
'!'+stripblanks(a)+'!'
a=['  123   ',' xyz']
strcat(stripblanks(a))