Homework on string method practice