improve isURL() and also the RE pattern