doc: Method examples for String

Same here, I like the other wording