trim out redundant space