deleting empty spaces