Added tests and pushed!

My replacement of spaces also broke the "to"  check in the regex, so I fixed that as well. Good that there's tests!