remove line-end witespace noise