TDD development of insert string, remove subString, and replace substring