Handle strings and arrays of keywords for the purposes of storage in a database or output to a view.