implemented expandCapacity()
implemented trimToSize()
implemented setLength()
add StringIndexOutOfBoundsException