How can i force a space into the six digit Canadian Postal Code?

Our back-end system only accepts Canadian postal codes as "XXX XXX." Is there an easy way for me to customize the form field to force in that middle space so that the data is collected and exported in the required format?