Added a sample showing some input validation and a sample of basic String manipulation.