Changing the capitalization of text in a document