How To Check If String Has Symbol Python