add length argument to setStringAtOffset