String Functions Program In Python Example Class