python check if character is not in string