trim space from empty line