function stringFormat(replacement, conversion) {
    var formattedReplacement = replacement;
    var precision = conversion.precision;

    if (!isNil(precision) && formattedReplacement.length > precision) {
      formattedReplacement = truncate(formattedReplacement, precision, '');
    }

    return formattedReplacement;
  }
Formats a string type according to specifiers.

@ignore
@param {string} replacement The string to be formatted.
@param {ConversionSpecification} conversion The conversion specification object.
@return {string} Returns the formatted string.