Do not write a value for strings in htab.

The assignment is unnecessary, and was overwriting the first element in the bucket (not the added string's value) in the case of a collision.