FWIW the expression is separating the wheat from the chaff. "Separate the wheat from the chaff" is an idiom that means to distinguish between things or people that are good or high quality, and those that are not.