You're viewing the legacy docs. They are deprecated as of May 18, 2016.
Go to current docs

RuleDataSnapshot.isString()

Usage

Ensures that the new data being written has child "name" with a string value.

".validate": "newData.child('name').isString()