Palindromic string

what is the use of bool function in palindromic string