CMS-2968 Replace nasty usage of string array of array as search input

Created SearchInputValues-class