Fix formatter. The end of the format string disappears.

The formatter losts strings after the last format keyword.

```
format: 'pre[ yyyy/mm ]post'
```
outputs
```
pre[ 2013/03
```