remove too spaces at end of line