FIX: Strip whitespace from URL before validating (PR #12174)

GitHub

Is there any chance embed_url can be nil? do we want a &. here?

There are checks to ensure that embed_url is always present.