remove head and tail white space