fix trailing white spaces