Implement the repeat-string reaction test.