get rid of trailing white space where applicable