move regexp to string