removed duplicate str->mem set