Exerc. 1.18

Removes extra spaces/tabs at end of line