adding new example for string class

Please review.