getting rid of trailing spaces