Removes from string chacacters that not match the predicate
string removeWhere(bool Function(String) predicate) => toArray.where((x) => !predicate(x)).join();