clear line0 each iteration
remove escaping on final chars