Correct validation rule in model

In the example 'length' is still mentioned. This is not working anymore and should be changed to 'string'