Unit tests!

First batch of tests, using PHPUnit to test string functions.