check str is string for isEMail() and IsUrl()