fix word comparison

fix a bug where comparison is not case-intensive