Added newline stripping to urlcheck