You're close.
Your function appears correct, but you don't need the > 0 portion. That turns it into a true/false calculation rather than returning the index.
You also shouldn't apply lowcase if your test is case sensitive. And since you're searching for a word, use FINDW()
Index_with = findw(string, 'with');