Deleting useless spaces