removed end spaces