strip tabs and leading and trailing spaces

from the output.