allowing a RegExp as a custom check

especially useful with multiple string arguments