remove trailing whitespace (thanks to cane :)