remove trailing white spaces in info output