python check if a substring is present in a string