trims trailing white spaces.