the router allows String contraints.

Closes #9432.