blacklist function
remove characters that appear in the blacklist.
The characters are used in a RegExp and so you will need to escape some chars.
Implementation
String blacklist(String str, String chars) =>
str.replaceAll(RegExp('[$chars]+'), '');