Java string builder test