%% Construct Valid MATLAB Identifiers

S = {'Item_#','Price/Unit','1st order','Contact'};
N = matlab.lang.makeValidName(S)

% In the first and second elements, makeValidName replaced the invalid characters (# and /), with underscores. In the third element, makeValidName appended a prefix because the character vector does not begin with a letter, deleted the empty space, and capitalized the character following the deleted space.
% Copyright 2012 The MathWorks, Inc.