fix leading and trailing space