# clean_string_values

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/graphs/neo4j_graph/clean_string_values)

Clean string values for schema.

Cleans the input text by replacing newline and carriage return characters.

## Signature

```python
clean_string_values(
    text: str,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `text` | `str` | Yes | The input text to clean. |

## Returns

`str`

The cleaned text.

## ⚠️ Deprecated

Deprecated since version 0.3.8.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/d5ea8358933260ad48dd31f7f8076555c7b4885a/libs/community/langchain_community/graphs/neo4j_graph.py#L55)