def string_found(string1, string2):
    string1 = ' ' + string1.strip() + ' '
string2 = ' ' + string2.strip() + ' '
if string2.find(string1):
    return True
Find substring in string but only if whole words?