Working with strings

doesn't the code i posted demonstrate how the moves can be executed sequentially?