Strip whitespace from URL previews