remove trailing white spaces