function replaceString( src, target, str ) {
	var out = replace( src, '{{'+target+'}}', str );
	if ( str.length > MAX_CHARS ) {
		out = replace( out, '{{'+target+'_ESLINT}}', ' // eslint-disable-line max-len' );
	} else {
		out = replace( out, '{{'+target+'_ESLINT}}', '' );
	}
	return out;
}
Replaces the specified tag in a source string by the chosen replacement and adds directive to disable the maximum line length lint rule if necessary.

@private
@param {string} src - source string
@param {string} target - target tag
@param {string} str - replacement
@returns {string} output string