string cutEoln(string text)
{
    return resize(text, strlen(text) - 1);
}
