Implemented the empty functions and tests.

This is completely functional, but in Ruby we usually strive for readability unless we'd take a serious performance hit. Ruby has a few String methods that might prove useful here.