I'd prefer that you use `validator.blacklist(str, chars)` here since it's already tested and replaces more than one character at a time

```javascript
validator.stripLow = function (str, keep_new_lines) {
    var chars = keep_new_lines ? '\x00-\x09\x0B\x0C\x0E-\x1F\x7F' : '\x00-\x1F\x7F';
    return validator.blacklist(str, chars);
};
```