remove trailing white spaces
backport until 2014.02.23