working on advancedString class