removal of trailing white spaces