Here is an example of how to make this, including a Print command that shows you the string and substring when found.