remove trailing whitespaces [2]