evaluateType = function(type) {
            var normalizedType = type.toLowerCase();

            if (notFile) {
                return normalizedType !== "file";
            }

            return normalizedType === "file";
        }
@param str String to format.
@returns {string} A string, swapping argument values with the associated occurrence of {} in the passed string.