strip leading and trailing whitespace from urls, fix for #12