doc: Method examples for String

Ah yes, good catch.