Revert "Revert "string rotate code sample""

This reverts commit 2e214f4edc8a8f8cc48e0a017c6c9175e60438bb.