check if the string matches the comparison
bool equals(String? str, comparison) { return str == comparison.toString(); }