switched to string manip vs fsm.