[lib] minor update: simplifies equality function by adding operator== to String.