%% Delete Substring from Character Vector
% Create a character vector. Delete the substring, ' World', including the space character.

chr = 'Hello World'

%

newChr = erase(chr,' World')

% Copyright 2012 The MathWorks, Inc.