function isString(str, moduleName, targetName) {
    if (!str || typeof str !== 'string') {
        throw new PluginError('gulp-custom-filter' + (moduleName ? '.' + moduleName : ''),
                (targetName || str) + ' must be a string');
    }