added processing multibyte string (support cyrillic)