removal of trailing whitespace