Handle shorter/longer ids

    PMMMNNNN   => P0MMMNNNN
    PMMMNNN    => P0MMM0NNN
    0PMMMMNNNN => PMMMMNNNN

yes, people have done all of this :-)
Handle other id formats

    P-MMMM-NNNN  => PMMMMNNNN
    P-MMM-NNN    => P0MMM0NNN
    0P-MMMM-NNNN => PMMMMNNNN
    P-MMMMNNNN   => PMMMMNNNN