last word in file corner case handled