remove trailing whitespace from question