Check If String Has Certain Characters Pythonanywhere