Fixed the example showing parameter type constraints

String is not a `Moose::Util::TypeConstraints` type. To make the example
work, it needs to be Str.
See https://metacpan.org/module/Moose::Util::TypeConstraints