doc: Method examples for String

and here