Preprocess content