test string builder constructor and methods