add case insensitive matching to PM/DM string