varNamesToChar function

Split a character string into variable names