I don't think this will parse correctly if the unit is "dip". It's 3 characters not 2 so you'll just get "di".