remove extra spaces from a few kind values