python check if string is substring in list of strings