use HashMap to do word compare