begin implementing parseState by checking any error codes
clear current parse string when its done being parsed so that completed state can be determined