function [str2,QQ] = run_sst(DFST,str) % str2 is the output string % QQ is the sequence of states that the automaton traverses q = DFST.q0; QQ = [q]; str2 = ''; for i=1:length(str) s = str(i); [q,t] = sst_delta(DFST,q,s); QQ(end+1) = q; str2 = [str2 t]; end return