Implemented substring equality and comparison.