Changed "address" to "URL"
Filename checking now uses startswith/endswith