Removes all characters that do not appear in chars from the string.
chars
Example:
whitelist('hello world', 'lo'); // 'llool'
String whitelist(String str, String chars) => _whitelist(str, chars);