change in generateAuthor to remove trailing space, and work with corpus