New compare function for enhanced comparison.
Currently implemented string method. Fixes #69