Test for string printer