doc: Method examples for String

:heart_eyes: