deletes whitespace in list elements