}else{
                len=Math.floor(string.length/2)
                console.log(len)
                let left=len-1
                let right=len+1
                while(string[left]===string[right] && string[left]){
                    if(left===0){
                        console.log('true')
                        return true
                    }
                    left--
                    right++
                }
                console.log('false')
                return false
            }
        }