[WIP] trim trailing spaces