fixed all syntax for expect to raise error for long lines