Write a Python script to check if the given string is a palindrome.
string_to_test = "racecar"
def is_palindrome(string_to_test):
    reverse = reversed(string_to_test)
    if list(string_to_test) == list(reverse):
        return True
    return False