modify pn to matlab string