adding new example for string class

Please review.
looks like you're missing a `return` at the end of `main()`