firstNonWhitespaceCharacterIndex

The offset of the first character which is not a whitespace character as defined by /\s/. Note that if a line is all whitespace the length of the line is returned.

Online Documentation