I think you might have been a little hopeful here ;)

The 'restrict' function on MCObjectPropertySet restricts the set of keys in m_props, to those listed in (the line-delimited) list p_string. So you need to iterate through the lines of p_string, and fetch the value in props for the key, and store back in t_new_props. Then replace m_props with t_new_props.