checks substring

Given two strings, (s,f), checks if s is a substring of f. If * appears,
this is treated as a wildcard for one or more characters.