check if the string matches the comparison
bool equals(String str, Object comparison) => str == comparison.toString();