Refactoring: change String[] to List<String>