Pass the string instead of reconstructing it from a regexp