print first word of each line