Method for formatting postal code