CSPACE-798: Fix to generation of prototrees when more than one index substitution is required per string.
CSPACE-798: Fix to generation of prototrees when more than one index substitution is required per string.

cherryhill/collectionspace-ui,cspace-deployment/ui,cherryhill/collectionspace-ui,cspace-deployment/ui,cspace-deployment/ui,cherryhill/collectionspace-ui,cherryhill/collectionspace-ui,cspace-deployment/ui,cspace-deployment/ui