# 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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/RdYVP1WIcb4cwE9szzXO/properties.png)

## 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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/ijnVjjBjTSMPBs8wBXY7/dataflow.png)

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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/KtFSeh0khXyyPQ9g5xK0/output.png)
