# Pad Text

This activity provides padding for the given text based on the given inputs.

### Input

* **Text :** [`String Argument`](/getting-started/rpa-studio/arguments.md#string) ![](/files/-MVREnwPf_D3-qJvjjYd)\
  Input the text that is to be padded
* **Pad Value:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string) ![](/files/-MVREnwPf_D3-qJvjjYd)\
  Input the value to be padded with the specified text.
* **Total Width:** [`Integer Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments) ![](/files/-MVREnwPf_D3-qJvjjYd)\
  Input the total width of the text after padding.
* **Pad Text From:**\
  Select where the specified text is to be padded.
  * `PadLeft` - Right-aligns the characters in the given text.
  * `PadRight` - Left-aligns the characters in the given text.

### Output

* **Result:** [`String Variable`](/getting-started/rpa-studio/variables.md#string)\
  Stores the padded text in the specified [String ](/getting-started/rpa-studio/variables.md#string)variable.


---

# 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.visualyze.ai/rpa-studio/data/string/pad-text.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.
