You are printing returnstring but you are not setting it in your getticket() routine.

You are setting it in your Routine() sub routine but you are not calling that routine.