python check if character not in string