ensures that url matches end of line