delete unwanted spaces at the end of a cell