trim trailing spaces
TODO