Fixed tree analyzing then creating from string.