trim leading and trailing whitespace from labels, for #3