try to clear trailing spaces