Put label in Object Browser only if it is string.
Test if the class of attr(x, "label") is "character" before including it
as the object's label in the Object Browser.