How would this work for Text, in which == compares only if the Text's are the same object?