string to regexp auto convertion