Checked if string is palindrome