Limit string size in sprintf format specifiers