String Manipulation Using Array In Python Declaration