# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fb9kQ1664uDviLGg36ZLy%2FfxPicture.png?alt=media)

## Example

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

![beforeFx](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F82XBd6UhJ6je3BX9K7Yf%2FbeforeFx.png?alt=media)

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

![dataflow](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FtPQwstLMT8g4zTeL7Y9K%2Fdataflow.png?alt=media)

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

![afterFx](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fw1BnLEo6MC1VtMMVDKqC%2FafterFx.png?alt=media)
