Remove tabs and ending spaces.