set "$str" to "Hello world!" set "LOCAL" "$str.length" set "$str.length" to 12 * "LOCAL: &LOCAL& Str length: &$str.length&"
LOCAL is properly set to the length of the string, 12, but after setting $str.length to anything else, $str.length will actually be set to the next highest power of 2 if it is equal to the current string length or greater. If it is smaller, it returns the value you've just tried to set it to plus 1. Will edit once I've had a chance to check the GIT.