Suggest combining this to
std::string externsion = "." + bannedExtensions.at(i)