improve "hash" for short strings