Strip leading and trailing whitespace from URI argument.