Strings Manipulation Homework