added first draft of the string tree builder