Fix the problem that can not match the upper case word.

Fix the problem that can not match upper case word,when prefix is in lower case,by making prefix upper case.
For example, when prefix is "hello",the word "Hello" is unmatched.

My English is not very well,please modified the annotation if it has grammar errors. ^.^