Removal of trailing white spaces