fix trailing white space problem