trim inner spaces