Implement Item#matches(name, compare), along with Item#matches(match).
Preserve line-breaks when replacing mathematical operators, to not mess with debugging.