adding AcceptStr() and test