Strip trailing whitespace from urls