Add support for StringComparable in tree