public List<String> getMatchingNames(String letters){
        List<String> result = new ArrayList<>();
        for(String name : listNames){
            if (name.toLowerCase().startsWith(letters.toLowerCase())) result.add(name);

        }
        return result;
    }