Use formatex and charsmax