getting rid of spaces with IDs