string: introduce memweight()