The royal visited the New York Public Library on Wednesday.