string=input('enter a phrase: ', 's');
distinct='';
%count=0;
for let=string
    if numel(strfind(distinct,let))==0
     %   count=count+1;
        distinct(end+1)=let;
    end
end
disp(['deduplicate it: ' distinct]);