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]
```
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence