ui: corrected hash() behavior with an empty string literal and docs for StringT variant.