Script(s) to find palindromic substrings of a given string