Trie impemination

i want to read the paragraph and insert the each word
in my trie paragarph end if string is -1
and then i search for word present in my trie
it gives wrong ouput
example if my pargaraph is “deepak is good boy”
if i search for good is gives present
but it also give present for substring like deep

at line no 62
return temp->terminal=true;

this is not correct
correct one is
return temp->terminal==true;

i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask