Updated directive to take an array of strings as a value