Section: String Functions
isspace for a definition of a white-space.
There are two forms for the strtrim function.  The first is for
single strings
y = strtrim(strng)
where strng is a string.  The second form operates on a cell array
of strings
y = strtrim(cellstr)
and trims each string in the cell array.
strtrim to a simple string
--> strtrim('  lot of blank spaces    ');
and here we apply it to a cell array
--> strtrim({'  space','enough ',' for ',''})
ans = 
 [space] [enough] [for] []