# Ensure Left

Ensures that the string begins with a specified string. If it doesn't, it will now.

```yaml
links:
  - statamic.com
  - http://wilderborn.com
```

::tabs

::tab antlers
```antlers
{{ links }}
  <li>{{ value | ensure_left('http://') }}</li>
{{ /links }}
```
::tab blade
```blade
@foreach ($links as $link)
  <li>{{ Statamic::modify($link)->ensureLeft('http://') }}</li>
@endforeach
```
::

```html
<li>http://statamic.com</li>
<li>http://wilderborn.com</li>
```
