# ToProper(String str)

| Name                     | *ToProper*                                                                                   |
| ------------------------ | -------------------------------------------------------------------------------------------- |
| Applicable To (DataType) | String                                                                                       |
| Purpose                  | To convert the information in the data field to proper case.                                 |
| Description              | Converts the string argument into proper case by capitalizing the first letter of each word. |
| Return Type              | String                                                                                       |
| Syntax                   | str \[System.String] – string which will be converted.                                       |

![fxPicture](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/fxPicture.png)

## Example

We have a customers data in which we want to convert the *Address* information into proper case.

![beforeFx](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/beforeFx.png)

We will map the *Address* data field to the *str* under the *Input* node inside the function transformation object.

![dataflow](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/dataflow.png)

You can see that the data inside the *Address* field has been converted to proper case.

![afterFx](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/afterFx.png)


---

# 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://documentation.astera.com/astera-data-stack-v7/functions/string/toproper-string-str.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.
