const CustomError = require("../extensions/custom-error");

module.exports = function createDreamTeam(members) {
  if (!Array.isArray(members)) {
   return false;
  }
  return members
        .filter(x => typeof x === 'string')
        .map(x => x.trim())
        .map(x => x[0].toUpperCase())
        .sort()
        .join('')
};