結果 : check if a string is palindrome in python