remove tailing spaces