fixed bug about str with cyrillic