Bit of a workout on String Data Structure