• Shamefull, I blisfully ignored the first clause in the case statement that determined it was a character data type, oh bother.

    Max