Many matlab functions work with a string OR a cell of 1 string. So sometimes we don't realize their difference.
You can check the exact type of given stringy thingy with the function class().
To convert a cell into a string, use theVariable{:}
eg: regexp() –> cell