implemented basic vectorizeString function which generates XmlTree