python check if char not in string