How To Check Substring In Python