How generate proper Canadian postal_code

When generating the Canadian postal_code instead of 6 characters as “N2M 2H9” it generate just first 3 characters as “N2M” and province Quebec printed as “Québec”
Thanks