Fixed uninitialized string offset
Updated example