StringBuffer set length() and reverse()