More regex validations in switchUrlToRemote method