remove trialing whitespace