fix bug in appendSixString