# IsSubstringOf

| **Name**    | ***IsSubstringOf***                                                                                                 |
| ----------- | ------------------------------------------------------------------------------------------------------------------- |
| Syntax      | IsSubstringOf (String str1, String str2)                                                                            |
| Purpose     | To search specified string for another specified string value and return True if the latter is a substring of str2. |
| Description | Checks whether specified string is a substring of another string value. **Note:** Is case sensitive.                |
| Return Type | Boolean                                                                                                             |
| Parameters  | <p>str1 \[System.String] – String to search for</p><p>str2 \[System.String] – String to search in</p>               |

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

**Example**

In this example, we are passing the required parameters to the function transformation object using a *Variables* object.

Where,

*str1* = llo

*str2* = Hello World

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

Right-click on the function transformation object and select *Preview Output.* You can see that Astera Data Stack has returned “True”, as the *str1* value is a substring of the specified *str2* value.

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