Task: Program Execution
Input (English): s, head, F, back., S, x
Output (English): sheadFback.Sx