Misc. Bug Fixes & Enhancements

Fix bug where rules without variables weren't making it
through the apply_rule function.

Ignore punctuation in input strings.