IofSubStr is a function I found on the Kix boards created by Lonkero.

IofSubStr