---
url: /flow/guide/scripting-reference/functions/string/removeleadingzero.md
---

# RemoveLeadingZero

## Declaration

`Function RemoveLeadingZero( S : String) : string`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := RemoveLeadingZero('00000123'); //returns '123'
end;
```

## Description

Removes any leading zeroes from S string. Converting a string with leading zeros will also remove them.
