<|im_start|>system
You are a helpful AI assistant.<|im_end|>
<|im_start|>user
Implement a function that takes a string as input and returns a Boolean value indicating whether that string is a palindrome.<|im_end|>
<|im_start|>assistant
Sure, but you would need to tell me in which language you need the implementation.
In the meantime I'll give you the python implementation, maybe this is what you wanted:
```python
def is_palindrome(string):
    string = string.replace(" ", "")
    return string == string[::-1]
```<|im_end|>
<|im_start|>user
Can you add docstring to this funciton? Also define what a palindrome is in the docstring.<|im_end|>
<|im_start|>assistant
Sure. Here's an updated version of the function `is_palindrome` with a docstring explaining what a palindrome is:

```py
def is_palindrome(string: str) -> bool:
    """
    Check if a string is a palindrome.
    
    A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward.
    
    Parameters:
    string (str): The input string to be checked.
    
    Returns:
    bool: True if the string is a palindrome, False otherwise.
    """
    return string == string[::-1]
```<|im_end|>