check string for equality