Change format string to match variable types.