# Complete

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/expressions/functions/string-functions/complete
>
> Complete pads a string on the left, right or both sides with a given character until it reaches a total length.

This Function returns a \<string>, composed by the _String to Complete_ completed at right with the specified _Char_, with the specified _Total Length_.

### Parameters

* **String to Complete** <_string_> - Original string to be completed.
* **Char** <_string_> - Char to use in the completion.
* **Total Length** <_numeric_> - Final length of the string after completion.
* **Complete Left** <_boolean_> - Complete the string at left side?
* **Complete Right** <_boolean_> - Complete the string at right side?<br>

### Examples

* _Example 1_

Complete("Kalipso", "\*", 10, False, True)\
**Result** = Kalipso\*\*

* _Example 2_

Complete("Kalipso", "\*", 10, True, False)\
**Result** = \*\*\*Kalipso

* _Example 3_

Complete("Kalipso", "\*", 10, True, True)\
**Result** = \*\*Kalipso\*

* _Example 4_

Complete("Kalipso", "\*", 10, False, False)\
**Result** = Kalipso

* _Example 5_

Complete("Kalipso", "\*#", 10, False, True)\
**Result** = Kalipso\*#\*

* _Example 6_

Complete("Kalipso", "\*#", 10, True, True)\
**Result** = \*#Kalipso\*

:::info
If you specify to **Complete Left** and **Complete Right**, the completion method starts at left.
:::

:::info
If you specify to don't **Complete Left** and don't **Complete Right**, the returned value is the **String to Complete**.
:::
