index first lines of text