Fixed the toupper issue,for grep