check if character not in string python