bugfix: regexp.search expects a string