change pm string to pm_id integer