Check If String Has Substring Python Meaning