Handle trunkcode case in format method