Add erase whole line optimization