Output a warning when an invalid URL is detected. Still need to trim whitespace on the python side.