removing trailing white spaces