# 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](https://docs.zerowork.io/using-zerowork/using-building-blocks/format-data/remove-words "mention").
* **Replace text**\
  Example: "Hello world" (replace "world" with "universe") ⟶ "Hello universe"
* **Shorten content length**\
  See sub-page [shorten-content-length](https://docs.zerowork.io/using-zerowork/using-building-blocks/format-data/shorten-content-length "mention").
* **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 "
