Write a function that checks if a string is a palindrome.
Here is a simple function in Python that checks if a string is a palindrome:

``` python
def is_palindrome(string):
    reversed_string = string[::-1]
    if string == reversed_string:
        return True
    else:
        return False

# Testing the function
print(is_palindrome('madam')) # True
print(is_palindrome('racecar')) # True
print(is_palindrome('word')) # False
```
Below is an instruction that describes a task, write a response that appropriately completes the request.

### Instruction:
Write a function that checks if a string is a palindrome.

### Response:
Here is a simple function in Python that checks if a string is a palindrome:

``` python
def is_palindrome(string):
    reversed_string = string[::-1]
    if string == reversed_string:
        return True
    else:
        return False

# Testing the function
print(is_palindrome('madam')) # True
print(is_palindrome('racecar')) # True
print(is_palindrome('word')) # False
```