Add spaces between the words in the following text: Notionsthatpeoplewerenotonlyinfluencedbythespirits,butcouldalsoindeedhadtoinfluencethembyperformingreligiousrituals.
Notions that people were not only influenced by the spirits, but could also indeed had to influence them by performing religious rituals.