Preprocess notes