Normalizing the document