String Functions and Input/Output in Python