CS6311 Homework 4, CH02b - Strings, substrings, string output