結果 : check if substring is palindrome python