Text this: Cooling atomic ensembles with Maxwell's demon