I believe this whole method can be replaced by a single call:
```
String prefixCompensation = StringUtils.repeat("x", getPrefixLength());
```