remove trailing spaces
wip