# Format Data

The **Format Data** building block allows you to format text.

If the value to apply the format action on is empty, the TaskBot will take no action and continue its run.

### Actions

* **Remove word**\
  See sub-page [Remove Words](/using-zerowork/using-building-blocks/format-data/remove-words.md).
* **Replace text**\
  Example: "Hello world" (replace "world" with "universe") ⟶ "Hello universe"
* **Shorten content length**\
  See sub-page [Shorten Content Length](/using-zerowork/using-building-blocks/format-data/shorten-content-length.md).
* **Convert to lower case**\
  Example: "HELLO WORLD" ⟶ "hello world"
* **Convert to upper case**\
  Example: "hello world" ⟶ "HELLO WORLD"
* **Capitalize first letters**\
  Example: "Hello world" ⟶ "Hello World"
* **Normalize URL**\
  Examples:
  * [www.wikipedia.org](http://www.wikipedia.org) ⟶ <https://www.wikipedia.org/>
  * wikipedia.org ⟶ <https://www.wikipedia.org/>
  * wikipedia ⟶ error is generated "The URL is not a valid URL and cannot be normalized."
* **Trim white spaces**\
  Example: " Hello world " ⟶ "Hello World"
* **Remove line breaks**\
  Example:
  * "Hello\
    world" ⟶ "Hello World"
* **Remove smileys**\
  Example: "Hello world 🌎" ⟶ "Hello World "


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zerowork.io/using-zerowork/using-building-blocks/format-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
