his worked great except when the substring began at the first character of the parents string, then it returned:
So thank you very much to Thorpe for the help, but it was not EXACTLY what i needed.
It was the function used not whether or not a variable was used instead of a static. 😉