remove trailing whitespace left over