check if value url is valid forces first to be string