Update regex verfication to be sure that the argument is a string