Completed string evaluation, made a start on tree generation