format_four_chars function

Format number to four characters