Changed extract function so that it reports invalid words