fix the bug that string comparison is not case insensitive. It should be.