Remove spaces on end line