Clarification for a class of Turing machine problems
The question does not mention replacing "ba" by spaces.     It does not say that you can have spaces between the symbols in the output word. Is the blank character even in the output language?