drop any whitespace from end of result