remove trailing whitespace in horner