replace star with zero and one