.state.toString.substring() - Syntax

Tags: #<Tag:0x00007f616f913930>

Wanted to document this syntax on the forum. It took too long to find it and I wanted have it indexed for the next person(s).

var String MessageTruncated = Partition1Message.state.toString.substring(0,8)

Partition1Message.state is defined as a string already in the .items file

Position 0 = inclusion
Position 8 = exclusion

Best, Jay