error appears when trying to use russian letters here, while using  str.erase(std::remove_if(...), str.end());