Modify the following text to remove any grammar errors:
He checked every word in the dictionary and re-write all of the words he doesn't know onto cards.
He checked every word in the dictionary and re-write wrote all of the words he didn't know onto cards.