Add equality comparisons to string