# StartsWith (String str, String value)

| Name                     | *StartsWith*                                               |
| ------------------------ | ---------------------------------------------------------- |
| Applicable To (DataType) | String                                                     |
| Purpose                  | To find out if the given string starts with a given value. |
| Description              | Determines whether a string starts with a given value.     |
| Return Type              | String                                                     |
| Syntax                   | str \[System.String] – string that will be searched        |
|                          | value \[System.String] – the given value                   |

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

## Example

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

Where,

*str* = ABCDEF

*startsWith* = B

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

Right-click on the function transformation object and select *Preview Output*. You can see that Astera Data Stack has returned the Boolean value, False, which means the original string does not start with the given value.

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