kill extra space at end