bugfix in vectorizeString and printTree functions