// used for last string from console text
        static string tryCompleteString(string str, StringCache stringCache)
        {
            var matched = stringCache.findByPrefix(str);

            if (matched.Count > 1)
            {
                showMessages(matched, L10n.str("ids_matched"));
            }

            return(getCommonPrefix(matched, str));
        }