This could be

```
string += rep || ch;
```