longestPalindrome-in-String Python code to find the longest substring which is a palindrome in the given word