not more raise a error on set_the_flash when receives a not string or regex