Added function to slice original input into a list and then list of element positions that need to be switched.  second function switches positions, returns formatted string