rename documents with their first line.