Text this: A combinatorial lemma and its applications