# Length of String

The **Length of String** node is used to determine the number of characters in a given string. This node calculates the total length of the string, including spaces, punctuation, and special characters, and returns the length as a numerical value. The resulting length can be stored in a new variable.

### Properties Panel

#### General

| **Field**                 | **Description**                                                                      | **Required** |
| ------------------------- | ------------------------------------------------------------------------------------ | ------------ |
| Node name                 | [Node Name](https://docs.cosmocloud.io/concepts-and-in-depth/flow-builder/node-name) | true         |
| Variable Name             | variable name to store result                                                        | true         |
| String To find the length | Name of string to check the length                                                   | true         |

### Example

Let's say that you want to find the length of string stored in `$.variables.name`.

1. Set Variable name to `stringSize`.
2. Set `String To find the length` to `$.variables.name`.

It will store the length of string present in `$.variable.name`. The variable `$.variables.stringSize` will contain the length.

### Returns

This node does not return any values but create a new variable with result . You can access it using magical autocomplete using `$.variables.<Variable name>`
