> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-center-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/data-center-1/data-center/data-preparation/data-preparation-workspace/transforms/string.md).

# String

The below-mentioned transforms are available under the String category:

![](https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FUU5jv4J4omGe0Vxjq4zn%2Fimage.png?alt=media\&token=850438b0-ea56-44e9-a0d2-c4a284d6d8b2)**​**

## **Add Prefix** <a href="#change-to-upper-case" id="change-to-upper-case"></a>

The ***Add Prefix*** transform allows you to effortlessly incorporate custom text at the outset of each value. The seamless integration of personalized text at the beginning of each value empowers you to enhance and customize your data in a user-friendly manner.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FWqBafg97Z8oDmpEoz42j%2Fprefix.gif?alt=media&amp;token=3f44756a-b004-42f9-bac3-5faf2b5b1bda" alt=""><figcaption><p><em><strong>Using the Add Prefix transform</strong></em></p></figcaption></figure>

Steps to perform the ***Add Prefix*** transformation:

* Select the ***Transforms*** tab.
* Open the ***Add Prefix*** transform from the Column category.
* Pass the prefix value that is needed.
* Select one or multiple columns where the prefix needs to be added.
* Result will come as a new column or on the same column by adding the prefix value on the selected columns.

## **Add Suffix**

The implementation of the ***Add Suffix*** transform enables the effortless inclusion of custom text at the end of every value. This transformative technique offers a user-friendly approach to enrich and modify the original data, allowing for the seamless integration of personalized text at the end of each value. By leveraging the flexibility of the ***Add Suffix*** transform, you can tailor and enhance your data with ease, ensuring it aligns perfectly with your specific requirements and desired outcomes.

Steps to perform the ***Add Suffix*** transformation:

* Select the transform.
* Select the Create a New Column (Optional).
* Pass the suffix value that is needed.
* Select one or multiple columns where the suffix to be added.
* Result will come as a new column or on the same column by adding the suffix value on the selected columns.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FfNG3GQqn4UrIazWEt0AP%2Fsuffix.gif?alt=media&amp;token=ac41cba1-d470-4629-8e8b-f2cbcf645ed0" alt=""><figcaption><p><em><strong>Using the Add Suffix transformation</strong></em></p></figcaption></figure>

## **Change to Lowercase** <a href="#change-to-upper-case" id="change-to-upper-case"></a>

The ***Change to Lowercase*** transform converts the values from the selected column into lowercase. This transform can either replace the existing column value entirely or be added as a new column alongside the original data. This flexibility allows for seamless integration and customization of the transformed values within your dataset, giving you the option to either update the existing column or introduce a new column with the lowercase representation of the data.

When the ***Change to lower case*** transform is applied on the Source column,

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FZryiz40wDRe8ZxsPj8lw%2Fimage.png?alt=media&#x26;token=935d1049-b2dd-432a-8b92-1221d5f27758" alt=""><figcaption></figcaption></figure>

The ***Source*** column gets displayed in the lower case:

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FG8lhUVsbBeKuPNq89njp%2Fimage.png?alt=media&#x26;token=efad2d93-1bb7-497e-a8bf-76cd537e705c" alt=""><figcaption></figcaption></figure>

## **Change to Title Case** <a href="#change-to-title-case" id="change-to-title-case"></a>

The ***Change to Title Case*** transform converts the selected column value into title case, resulting in a transformed value where the first letter of each word is capitalized. This transformed value can either replace the existing column value or be added as a new column within the dataset. This flexibility empowers you to smoothly incorporate the title case representation of the data, allowing for enhanced readability and consistency.

The ***Change to Title Case*** transform is applied to the ***Source*** column,

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FtJZHPEUJ6eQxhSYmkNzB%2Fimage.png?alt=media&#x26;token=c3063d71-8f5a-4634-a4e9-908f88b9803e" alt=""><figcaption></figcaption></figure>

the ***Source*** values get changed into the title case:

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FfvHSKvsmxPZydOcKSjmj%2Fimage.png?alt=media&#x26;token=3fa9b9a4-dc2d-4db4-93fa-5c73efd304ce" alt=""><figcaption></figcaption></figure>

## **Change to Upper Case** <a href="#change-to-title-case" id="change-to-title-case"></a>

The ***Change to Upper Case*** transform is a data manipulation operation that converts the selected column value to capital letters. This transformation can be applied in two ways: by replacing the existing column value or by adding the transformed value as a new column.

The ***Change to Upper Case*** transform is applied to the Source column by creating a new column,

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FsgckBQjbkMilHrA3pACI%2Fimage.png?alt=media&#x26;token=7b549512-7a3f-4a9d-a6b8-66acbe3b45ec" alt=""><figcaption></figcaption></figure>

A new column gets created with the values mentioned in Upper case:

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FU98VZTR61sACWFpQuofC%2Fimage.png?alt=media&#x26;token=dc88ac9b-5bc5-4dee-b9d7-44e9b665da75" alt=""><figcaption></figcaption></figure>

## **Convert Values To Column** <a href="#extract-substring-at-position" id="extract-substring-at-position"></a>

Each unique value in the original column will be represented by a separate column, and the presence or absence of that value will be indicated by a binary value (0 or 1) in the corresponding column.

Steps to perform the transformation:

* Select the Column which is required to convert.
* Select the transform.
* Result will come as new columns for every unique value in a column.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FffYmaEbjrYzh1BPtt2te%2FConvertValuestoColumn.gif?alt=media&amp;token=5ee307c2-563e-4feb-b119-7e7a8809ff72" alt=""><figcaption><p><em><strong>Converting values to Column</strong></em></p></figcaption></figure>

{% hint style="info" %} <mark style="color:green;">Please Note:</mark> *It is advisable to u**se columns with Categorical variables**/ w**ith String data type** to apply the **Convert Values to Column** transform.*
{% endhint %}

## **Extract Substring at Position** <a href="#extract-substring-at-position" id="extract-substring-at-position"></a>

The ***Extract Substring at Position*** transform allows you to extract a portion of a selected column based on the starting position and the length of the substring to be extracted. The transformed value can replace the existing column value or be added as a new column.

Here's how the transform works based on the provided parameters:

* **Position**: The starting position of the substring. It can be a positive or negative number.
  * If the position is positive, the substring extraction starts from the beginning of the string. For example, if the position is 2, the extraction will begin from the second character.
  * If the position is negative, the substring extraction starts from the end of the string. For example, if the position is -3, the extraction will begin from the third-to-last character.
* **Length:** (Optional) The number of characters to extract from the string. If omitted, the whole string starting from the given position will be returned.

Let's see an example to better understand the transformation:

Suppose you have a column named "***Text***" with the value "***Hello, World!***".

If you apply the substring extraction transform by replacing the existing column value and setting the position to **2**, the transformed value will be "***ello, World!***" because it starts from the second character onward.

If you apply the substring extraction transform by adding a new column and setting the position to -6 and the length to 5, the transformed value in the new column will be "World" because it starts from the third-to-last character and extracts 5 characters.

Keep in mind that the exact implementation of this transformation may vary depending on the data manipulation tool or programming language you are using.

The ***Extract Substring at Position*** transform is applied to the ***expected\_joining\_date*** with the ***0*** position and ***7*** as length value in the below-given image:

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FqlfVnQmGdMNwCOOE836s%2Fimage.png?alt=media&#x26;token=a22ce551-9dec-4862-9bd6-7936a9f93af5" alt=""><figcaption></figcaption></figure>

It returns a new column ***expected\_joining\_date\_extract\_substring\_1*** with the first ***7*** positions as the split string value is ***0***.

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2Fk8n8YjluktBLG5tHuq4i%2Fimage.png?alt=media&#x26;token=3c7f8df3-8786-4be1-b017-248da7831e5a" alt=""><figcaption></figcaption></figure>

## **Extract Substring before Delimiter** <a href="#extract-substring-before-delimiter" id="extract-substring-before-delimiter"></a>

The ***Extract Substring before Delimiter*** transform allows you to extract a substring from a selected column based on the count of occurrences of a delimiter. It creates a new column that contains the extracted substring.

Here's how the transform works based on the provided parameters:

**Delimiter**: The character or sequence of characters that separates the substrings in the selected column.

**Count**: The count of occurrences of the delimiter before which the extraction should happen. This value is mandatory.

Let's look at an example to understand the transformation:

Suppose you have a column named ***expected\_joining\_date*** with values like **2018-06-12**. You want to extract only the year from this column.

To achieve this, you can use the Extract Substring Before Delimiter transform with the following parameters:

**Delimiter**: "-"

**Count**: 1

By applying this transform, a new column named ***expected\_joining\_date\_extract\_substring\_before\_delimiter1*** will be created. It will contain only the first substring (year) extracted from the original column.

The below given example displays how the ***Extract Substring before Delimiter*** transform extracts the first string from the ***expected\_joining\_date*** column and creates a new column.&#x20;

As a result, the ***expected\_joining\_date\_extract\_substring\_before\_delimiter1*** displaying only the **first string (only the year) value before the first delimiter** of the selected column.

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FiZVKpGEkxxPQGPwAOlB1%2Fimage.png?alt=media&#x26;token=860534c6-de26-43a1-8098-3218d06baa3d" alt=""><figcaption></figcaption></figure>

## **Get Domain** <a href="#insert-character" id="insert-character"></a>

To extract the domain from a valid URL, you can use the ***Get Domain*** transform. This transform allows you to retrieve the domain portion of a URL and can be used to replace the existing column value or add the extracted domain as a new column.

Here's how the ***Get Domain*** transform works:

**Input**: The selected column containing the URLs from which you want to extract the domain.

**Output:** The transformed value will be the extracted domain, which can replace the existing column value or be added as a new column.

Let's see an example to better understand how this transformation works:

E.g., For the URL: <https://www.google.com>  the extracted Domain value is ***google.***

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FR9ecRBPhruKuC6zaV4nm%2Fdomain.gif?alt=media&amp;token=f34fc48b-8cad-49fb-9e1b-51e42da32042" alt=""><figcaption><p><em><strong>Using the Get Domain transform</strong></em></p></figcaption></figure>

## **Get Host**

The ***Get Host*** transform is designed to extract the host name from a URL, including the subdomains but excluding the path and query parameters. It helps to isolate the host from the complete URL.

Here's an example to demonstrate how the ***Get Host*** transform works:

E.g., For the URL: <https://www.google.com> the extracted Host value is ***[www.google.com](http://www.google.com).***

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FaL03vQjQhtH3SvIph5Xp%2Fhost.gif?alt=media&amp;token=de3b1284-6548-4cb8-a4bf-bd0e71606d42" alt=""><figcaption><p><em><strong>Using the Get Host transform</strong></em></p></figcaption></figure>

## **Get Subdomain Name**

To extract the subdomain name from a valid URL, you can use the ***Get Subdomain Name*** transform. This transform specifically focuses on extracting the subdomain portion from a URL.

Here's an example to demonstrate how the ***Get Subdomain Name*** transform works:

E.g., For the URL: <https://www.google.com>  the extracted Sub-domain Value is ***[www](http://www).***

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FkDlcSZqXbsa2WDemzbAQ%2Fsub_domain.gif?alt=media&amp;token=7c280f95-c993-4cbb-82f7-29a232664c73" alt=""><figcaption><p>Using the Get Subdomain Name transform</p></figcaption></figure>

## **Insert Character** <a href="#insert-character" id="insert-character"></a>

The ***Insert Character*** transform allows you to insert a specified character after a specified position in a cell value. This transformation can either replace the existing column value or add the modified value as a new column.

Here's how the ***Insert Character*** transform works based on the provided parameters:

* **Position**: The position(s) in the cell value after which the character should be inserted. You can specify a single position or multiple positions as comma-separated values.
* **Character**: The character that should be inserted after the specified positions.

Let's see an example to understand the transformation better:

The ***Insert Character*** transform has been applied in the below-given column to the ***offered\_ctc*** column. The selected **position** is **0** and **character** to be added is **$**:

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FVPBY8WB6w6wZkUBBxdyC%2Fimage.png?alt=media&#x26;token=1d5d48d3-9878-4011-9bca-2071e8aac613" alt=""><figcaption></figcaption></figure>

A new column gets added in this case to the dataset with the set configuration for the ***Insert Character*** transform:

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FLU2yfZ79adLnPO0E6JIU%2Fimage.png?alt=media&amp;token=1ae06531-2cfc-4b07-8075-e8a35f996d23" alt=""><figcaption></figcaption></figure>

## Is Even <a href="#remove-consecutive-characters" id="remove-consecutive-characters"></a>

The ***Is Even*** transform is a data manipulation operation that checks whether an integer is even or not. It evaluates the given integer and returns a Boolean value indicating whether it is an even number.&#x20;

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> It returns **True** for the even number and **False** for the non-even values.*
{% endhint %}

Steps to perform the transformation:

* Select an Integer column.
* Select the ***Is Even*** transform.
* Result will come as a new column if the integer is ***Even*** then ***True*** else ***False***

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2F2yomiBU52icGrRAoR5Mm%2Fis_even.gif?alt=media&amp;token=c6f58e01-d73c-4375-8e17-b5f73f15959e" alt=""><figcaption><p><em><strong>Using the Is Even transform</strong></em> </p></figcaption></figure>

## Is Odd <a href="#remove-consecutive-characters" id="remove-consecutive-characters"></a>

The ***Is Odd*** transform is a data manipulation operation that checks whether an integer is odd or not. It evaluates the given integer and returns a Boolean value indicating whether it is an odd number.

Steps to perform the transformation:

* Select an Integer column.
* Select the ***Is Odd*** transform.
* Result will come as a new column if the integer is ***Odd*** then ***True*** else ***False***.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2F11UyLRFWzE15L7dHcZyF%2Fis_odd.gif?alt=media&amp;token=1e4fa37c-a4dd-478f-89cc-0e82e7cf75a0" alt=""><figcaption><p><em><strong>Using the Is Odd transform</strong></em></p></figcaption></figure>

## Negate Boolean Value <a href="#remove-consecutive-characters" id="remove-consecutive-characters"></a>

The ***Negate Boolean Value*** transform is a data manipulation operation that returns the opposite value of a given Boolean value. It negates or flips the Boolean value from ***True*** to ***False*** or from ***False*** to ***True***.

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> It supports the **Boolean** column where **True**/ **False** values are mentioned.*
{% endhint %}

Steps to perform the ***Negate Boolean Value*** transformation:

* Select a Boolean column where values are mentioned as ***True***/ ***False.***
* Select the ***Negate Boolean Value*** transform.
* Result will get on the same column where the output is the opposite of the source value.&#x20;
  * E.g., if a value was ***True*** in Source -> then after applying the ***Negate Boolean Value*** transform it would get changed to ***False*** and vice versa.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2Fff8C8GL3MwpwdjVNSFKo%2Fnegate_boolean.gif?alt=media&amp;token=e2d1b904-081a-4cf7-8ae9-78e1cb43b4a9" alt=""><figcaption><p><em><strong>Using the Negate Boolean Value transform</strong></em></p></figcaption></figure>

## Remove Accents <a href="#remove-consecutive-characters" id="remove-consecutive-characters"></a>

The ***Remove Accents*** transform is a data manipulation operation that helps clean text by removing accented characters. Accented characters are special characters that appear above or below a letter, modifying its pronunciation or meaning in some languages. Removing accents can be useful for tasks such as text normalization or language processing.

Steps to perform the ***Remove Accents*** transformation:

* Select the transform.
* Select the ***Create a New Column***.
* Select one or multiple columns where the accents need to be cleaned.
* Result will come as a new column by cleaning all the accented characters.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FlGk9beIFjbFGMzTIpkxE%2FremoveAccent.gif?alt=media&amp;token=76799e91-c840-44ad-b9a0-71a316a2f2c4" alt=""><figcaption><p><em><strong>Using the Remove Accents transform</strong></em></p></figcaption></figure>

## **Remove Consecutive Characters** <a href="#remove-consecutive-characters" id="remove-consecutive-characters"></a>

The ***Remove Consecutive Characters*** transform is a data manipulation operation that removes repeated whitespace or characters from a selected column. It modifies the selected source column by removing the repetition or adds the modified result as a new column.

Here's how the ***Remove Consecutive Characters*** transform works based on the provided parameters:

* ***Separator***: This parameter specifies whether the transform should search for repeated whitespace or other characters. If "whitespace" is selected, the transform searches for multiple consecutive whitespace characters and returns a single-spaced value. If "other" is selected, the transform allows you to specify a custom repeated character.&#x20;
* ***Custom Repeated Character***: This parameter is applicable only when "***other***" is selected as the separator. It allows you to specify the character whose consecutive occurrence must be searched and removed.
* **Submit**: Click the ***Submit*** option to apply the transform specification to the selected column.

The ***Remove consecutive characters*** transform is applied to the ***current\_status*** column in the below-given image:

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2Fd2FMLGKiBI6Vpr7hTq3e%2Fimage.png?alt=media&#x26;token=1cefbedb-05d5-4bfe-827a-d6cff785a0ce" alt=""><figcaption></figcaption></figure>

The consecutive character '**r**' gets removed from the cells that contain the value '**Transferred**'. It returns a new column auto-named as ***current\_status\_remove\_consecutive\_character\_1*** column as shown below:

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2Fk9Gbss4dWrPTseNneRnp%2Fimage.png?alt=media&#x26;token=b5172c60-366a-49c7-8e5e-3df18ba841bb" alt=""><figcaption></figcaption></figure>

## **Remove Part of Text** <a href="#remove-part-of-text" id="remove-part-of-text"></a>

The ***Remove Part of Text*** transform is a data manipulation operation that matches and removes a specific part or the entire value from a selected column based on a given condition. This transformation can be used to replace the existing column value or add the modified value as a new column.

* Select a column containing some text in the Dataset.
* Open the **Transforms** tab.
* Search and Select the ***Remove Part of Text.***
* **Create New Column**: Enable this option to create a new column.
* **Operator:** Select the operator required for matching the text from the list. The supported operators are contains, equals, starts with, ends with, regex.
* **Value:** The value or pattern to be searched for in the selected text/ string column.
* **Submit**: Click the ***Submit*** option to apply the transform.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FJwEqMtuhAFU0qtlWv2y7%2Fimage.png?alt=media&amp;token=3e69e865-efcf-4f6d-a6f9-f3dfb9b9cedb" alt=""><figcaption></figcaption></figure>

* Based on the selected value the part of the text will get removed in the newly added column.    ​

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FyNiMzDAkjwqwCnbrYOrL%2Fimage.png?alt=media&amp;token=827b74f6-ebb9-41f3-ac7e-e046b19081a1" alt=""><figcaption></figcaption></figure>

## **Remove Trailing and Leading Characters** <a href="#remove-trailing-and-leading-characters" id="remove-trailing-and-leading-characters"></a>

The ***Remove Trailing and Leading Characters*** transform is a data manipulation operation that removes leading and trailing characters from a selected column. This transformation can replace the existing column value or add the modified value as a new column.

Here's how the *Remove Leading and Trailing Characters* transform works based on the provided parameters:

* **Padding Character**: This parameter allows you to specify whether to remove whitespace or another character from the leading and trailing positions of the column values. You can choose the desired option from the drop-down menu.
* **Custom Padding Character**: This parameter is applicable only when ***other*** is selected as the padding character. It allows you to specify the specific character to be removed from the leading and trailing positions.&#x20;
* ***Submit***: Click the ***Submit*** option after providing the required fields.

By applying the transform and specifying the desired parameters, the leading and trailing characters, including whitespace or a custom character, are removed from the selected column, or the modified data gets added as a new column.

The ***Remove Trailing and Leading Characters*** transform is applied on the ***designation*** column where the preface '***Sr***' custom padding is set to be removed from the new column,

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2F1ZOML3K1rtt2thflZ71G%2Fimage.png?alt=media&#x26;token=5cae2d10-31ce-4464-9a09-3830c6b7db16" alt=""><figcaption></figcaption></figure>

A new column with designation values gets added without the '***Sr***' prefix:

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FWJCnNwzBgGl5rpImRtOR%2Fimage.png?alt=media&amp;token=a60c062c-4d28-4c18-934d-b9da8fefaa36" alt=""><figcaption></figcaption></figure>

## **Search and Replace** <a href="#search-and-replace" id="search-and-replace"></a>

The ***Search and Replace*** transform is a data manipulation operation that searches for a matching part or the entire value in a selected column and replaces it based on the chosen option. This transformation can replace the existing column value or add the modified value as a new column.

Here's how the *Search and Replace* transform works based on the provided parameters:

* **Operator**: Select the operator required for matching from the provided list. The available operators typically include "contains," "equals," "starts with," "ends with," and "regex match." Each operator determines the matching criteria for the search.
* **Value**: Specify the value or pattern to be searched for in the selected column. The value you provide will be used in conjunction with the selected operator to identify the matching part or value.

By applying the transform and providing the necessary parameters, the matching part or the entire value will be replaced in the selected column or added as a new column.

Steps to apply Search and Replace transform:

* Select a column from the displayed Dataset using the Data Preparation grid.
* Open the ***Transforms*** tab.
* Select ***Search and Replace*** transform from the ***STRINGS*** category.
* Use the checkmark to create a new column.
* Select an operator using the drop-down icon.
* Provide a specific value to be Searched for from the selected column.
* Provide a specific value to be replaced with for the searched value.
* Use the checkbox to enable overwrite entire cell option.
* Click the **Submit** option.&#x20;

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FrAmdVHQX8o8YMKVRqE7W%2Fimage.png?alt=media&amp;token=534e3f19-e6f9-4d19-a3c8-b5839ae34af3" alt=""><figcaption></figcaption></figure>

* The ***Search and Replace*** transform gets applied to the provided value and a new column gets added with the modified data as per the selected ***Replace with*** value.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FLII1is5rvDamWXQRU76p%2Fimage.png?alt=media&amp;token=f5f5ab09-40a9-4f1a-9f3b-f750234ba177" alt=""><figcaption></figcaption></figure>

## **Split String** <a href="#split-string" id="split-string"></a>

The ***Split String transform*** is a data manipulation operation that splits a string based on a specified condition. It creates new columns based on the number of occurrences of the delimiter or at a specific position.

Here's how the *Split String* transform works based on the provided parameters:

* **Use With**: This parameter allows you to specify whether the split should happen using a delimiter or at a specific position.
  * **Delimiter**: If you select "Delimiter" as the option for "Use With," you need to specify the separator on which the split should occur. The string will be split into multiple parts whenever the delimiter is encountered.
  * **Position**: If you select "Position" as the option for "Use With," you need to specify the position after which the split should occur. The string will be split into two parts, with the split happening at the specified position.
* By applying the transform and providing the necessary parameters, the string will be split based on the chosen condition, resulting in new columns based on the number of delimiter occurrences or at a specific position.

Here splitting of the column is done based on Delimiter. The applied Separator is '-' and the selected splitting rule is first 3 no. of fields.

* Select a column from the Data Preparation grid view.
* Open the Transform tab.
* Select the Split String transform from the String category.
* Provide the required parameters:
  * ***Use With***: Select Delimiter or Position as an option. Please note that based on the selected option, the next field will appear.
* Click the ***Submit*** option.

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FuN2XcxahByNDsurGMoN4%2Fimage.png?alt=media&#x26;token=4786ff5d-d044-4f66-9ded-a460472aeb13" alt=""><figcaption></figcaption></figure>

* The values from the ***expected\_joining\_date*** get splitted in 3 columns as displayed below:

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2Fv8yq4ZX0viRT3QSgdmSQ%2Fimage.png?alt=media&#x26;token=380ba987-b384-4952-8d19-cf603d9d40f5" alt=""><figcaption></figcaption></figure>
