Your code doesn't work with 'ababbab'
In reply to Re^2: Finding longest palindrome from a string by ccn in thread Finding longest palindrome from a string by BUU