Arrays of string values replaced by switch-case