String Function Program In Python Example Problem