Text this: Analysis of drug impurities