Updated to accept string and array as allowed argument
Updated dropAllowed function to only process arrays of strings