Given a string, write a Python program to check if the characters in the string form a palindrome.
string = "racecar"
def is_palindrome(string):
 return string == string[::-1]
 
result = is_palindrome(string)
print(result) # True