fix the bug: letter in predictiveSearch contains '\0'.