adjust test strings for proper endings