trim the space of SN,PN