change smartcase function in SelectPhrase